Skip to main content

Module float

Module float 

Source
Expand description

The float methods core lacks, from libm, for the no_std build (game ADR-0070 §3): import Float and Round only without std. With std the standard methods are called, so the numbers stay exactly what they were; the tests below hold the two together. A game built on the engine without std imports them too.

Traits§

Float
The f32 methods the frame and the game call that need std.
Round
The one f64 method the game calls that needs std.