Category talk:Wren-big: Difference between revisions

→‎Source code: Rewrote BigDec.toFloat method which was buggy previously.
(→‎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:
// Converts the current instance to a Num where possible.
// Will probably lose accuracy for larger numbers.
toFloat { Num_br.fromString(this.toString(14))toFloat }
 
// Converts the current instance to an integer where possible with any fractional part truncated.
9,476

edits