A finite IEEE 754 binary64 scalar with canonical language type f64.
Signature
Number remains a source alias for f64 and this host representation remains compatible with native spatial interfaces. Literals without numeric context default to f64. Exact integer widths and f16/f32/f128 use Scalar instead. Numeric variables never implicitly change dtype; use .convert[T]() for an explicit conversion, which rejects overflow and loss of information.
Methods
sin
Returns the numeric result or DataError when the operation cannot be represented.
cos
Returns the numeric result or DataError when the operation cannot be represented.
sqrt
Returns the numeric result or DataError when the operation cannot be represented.
abs
Returns the numeric result or DataError when the operation cannot be represented.
floor
Returns the numeric result or DataError when the operation cannot be represented.
ceil
Returns the numeric result or DataError when the operation cannot be represented.
min
Returns the numeric result or DataError when the operation cannot be represented.
max
Returns the numeric result or DataError when the operation cannot be represented.
clamp
Returns the numeric result or DataError when the operation cannot be represented.
pow
Returns the numeric result or DataError when the operation cannot be represented.
convert
Converts to explicit numeric dtype U or returns DataError when exact conversion fails.
Examples
Calculate a distance
Change either side length and inspect the hypotenuse.
Show a QR code for your glasses, or send a link to another browser. You can keep working here.
Sharing starts a fresh run of the last compiled code. Your editor draft stays here.
Join a session
Open an invitation link, or paste a link or code from the other device.
On RayNeo, open Menu → Connect live and scan this code. In another browser, open the invitation link below.
Or enter this code:
Waiting for another device. You can keep working while it connects.
Browsers can edit code; every device can use scene controls. The device that started the session controls playback.
Connection settings
A full invitation link includes its host. With a code alone, both devices need the same live host. Pairing setup
No output.
- Executed source spans appear here.
Expected output
5
Rust definition
Value::Number(f64); one finite Rust f64 per language value.
See Numeric types for exact integer widths and floating-point formats.