agda-stdlib icon indicating copy to clipboard operation
agda-stdlib copied to clipboard

Add a function to show a rational number as a decimal, to a given precision.

Open Taneb opened this issue 3 years ago • 2 comments

I'd like a function to turn a rational into its decimal expansion at a given precision. Perhaps with type showDecimalAtPrecision : (precision : ℕ) → ℚ → String, although maybe it should also take an argument specifying the base.

Taneb avatar Apr 16 '21 10:04 Taneb

I'm interested in solving this issue.

barrettj12 avatar Sep 07 '21 16:09 barrettj12

We already have some similar-ish code for converting to different bases in Data.DIgit if you're looking for inspiration.

MatthewDaggitt avatar Sep 07 '21 17:09 MatthewDaggitt