Mojo module
floatable
Implements the Floatable
and FloatableRaising
traits.
These are Mojo built-ins, so you don't need to import them.
Traits
-
Floatable
: TheFloatable
trait describes a type that can be converted to a Float. -
FloatableRaising
: TheFloatableRaising
trait describes a type that can be converted to a Float, but the conversion might raise an error (e.g.: a string).
Functions
-
float
: Get the Float representation of the value.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!