RealFloat -is:module

Efficient, machine-independent access to the components of a floating-point number.
Show a signed RealFloat value to full precision, using standard decimal notation for arguments whose absolute value lies between 0.1 and 9,999,999, and scientific notation otherwise.
Generates a random floating-point number in the [inclusive,exclusive) range. This generator works the same as integral, but for floating point numbers.
Format a floating-point number.
>>> F.formatQuery ("SELECT * FROM series WHERE value > "%F.realFloat) 0.1
"SELECT * FROM series WHERE value > 0.1"
Deep embedded version of RealFloat. Efficient, machine-independent access to the components of a floating-point number. A complete definition has to define all functions.
A random variable sampling from the standard normal distribution over any RealFloat type (subject to the rest of the constraints - it builds and uses a Ziggurat internally, which requires the Erf class). Because it computes a Ziggurat, it is very expensive to use for just one evaluation, or even for multiple evaluations if not used and reused monomorphically (to enable the ziggurat table to be let-floated out). If you don't know whether your use case fits this description then you're probably better off using a different algorithm, such as boxMullerNormalPair or knuthPolarNormalPair. And of course if you don't need the full generality of this definition then you're much better off using doubleStdNormal or floatStdNormal. As far as I know, this should be safe to use in any monomorphic Distribution Normal instance declaration.
Compute a uniform random value in the range [0,1) for any RealFloat type
realFloatUniform a b computes a uniform random value in the range [a,b) for any RealFloat type
Helper function for converting RealFloat types to JavaScript strings
Formatter for RealFloat values.
Encode a signed RealFloat according to FPFormat and optionally requested precision. This corresponds to the show{E,F,G}Float operations provided by base's Numeric module. NOTE: The functions in base-4.12 changed the serialisation in case of a Just 0 precision; this version of text still provides the serialisation as implemented in base-4.11. The next major version of text will switch to the more correct base-4.12 serialisation.
Preciser version of toRealFloat. If the base10Exponent of the given Scientific is too big or too small to be represented in the target type, Infinity or 0 will be returned as Left.
Safely convert a Scientific number into a RealFloat (like a Double or a Float). Note that this function uses realToFrac (fromRational . toRational) internally but it guards against computing huge Integer magnitudes (10^e) that could fill up all space and crash your program. If the base10Exponent of the given Scientific is too big or too small to be represented in the target type, Infinity or 0 will be returned respectively. Use toBoundedRealFloat which explicitly handles this case by returning Left. Always prefer toRealFloat over realToFrac when converting from scientific numbers coming from an untrusted source.
Converts a RealFloat value to a Builder, specifying if a decimal point should always be shown. Since: 2
Like formatRealFloatAltB, except that the decimal is only shown for arguments whose absolute value is between 0.1 and 9,999,999. Since: 2
Convert a RealFloat value to a Builder with the given precedence. Since: 2
Retrieve a RealFloat (e.g., Float or Double) from the stack.
Push a floating point number to the Lua stack. Uses a string representation for all types which do not match the float properties of the Number type.
Parse a single JSON number as any RealFloat type.