Skip to main content

FloatScalarStorage

Trait FloatScalarStorage 

Source
pub trait FloatScalarStorage: ScalarStorage
where Self::StorageType: Sized,
{ const POWERS_OF_10: [Self::StorageType; 39]; }
Expand description

Extension for floats.

Required Associated Constants§

Source

const POWERS_OF_10: [Self::StorageType; 39]

First 39 powers of ten.

Should be used as an alternative to powi, specifically when converting decimals to floats since we want exact values.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§