Category talk:Wren-big: Difference between revisions

Content added Content deleted
(→‎Source code: Rewrote BigRat.toFloat and toMixedString methods which were buggy previously.)
(→‎Source code: Rewrote BigDec.toFloat method which was buggy previously.)
Line 2,264: Line 2,264:
// Converts the current instance to a Num where possible.
// Converts the current instance to a Num where possible.
// Will probably lose accuracy for larger numbers.
// Will probably lose accuracy for larger numbers.
toFloat { Num.fromString(this.toString(14)) }
toFloat { _br.toFloat }


// Converts the current instance to an integer where possible with any fractional part truncated.
// Converts the current instance to an integer where possible with any fractional part truncated.