Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

ryū

num.ryū


An implementation of Ryū, a fast float to string conversion algorithm invented by Ulf Adams.
For more information see the original repository: https://github.com/ulfjack/ryu
and the paper: https://dl.acm.org/citation.cfm?doid=3296979.3192369

NYI lacks documentation
§as_string(val f64, scientific_notation bool, rounding_mode num.this.type.ryū.this.type.rounding_mode)
 => 
String
:
Any 
convert f64 to string
rounding mode 'conservative', never accepts lower/upper bound
rounding mode 'even', chooses the closest even number.
examples: 0.5 => 0
constructor for rounding mode
see below for predefined rounding modes