Real[A: Real[A] val]¶
Implements¶
- Stringable box
- _ArithmeticConvertible val
- Comparable[A] ref
Constructors¶
create¶
Parameters¶
- value: A
Returns¶
- Real[A] val^
from[B: ((I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val | U8 val | U16 val | U32 val | U64 val | U128 val | ULong val | USize val | F32 val | F64 val) & Real[B] val)]¶
new val from[B: ((I8 val | I16 val | I32 val |
I64 val | I128 val | ILong val |
ISize val | U8 val | U16 val |
U32 val | U64 val | U128 val |
ULong val | USize val | F32 val |
F64 val) & Real[B] val)](
a: B)
: Real[A] val^
Parameters¶
- a: B
Returns¶
- Real[A] val^
min_value¶
Returns¶
- Real[A] val^
max_value¶
Returns¶
- Real[A] val^
Public Functions¶
add¶
Parameters¶
- y: A
Returns¶
- A
sub¶
Parameters¶
- y: A
Returns¶
- A
mul¶
Parameters¶
- y: A
Returns¶
- A
div¶
Integer division, rounded towards zero.
Parameters¶
- y: A
Returns¶
- A
divrem¶
Parameters¶
- y: A
Returns¶
- (A , A)
rem¶
Calculate the remainder after integer division, rounded towards zero (div
).
The result has the sign of the dividend.
Parameters¶
- y: A
Returns¶
- A
neg¶
Returns¶
- A
fld¶
Floored integer division, rounded towards negative infinity.
Parameters¶
- y: A
Returns¶
- A
mod¶
Calculate the modulo after floored integer division, rounded towards negative infinity (fld
).
The result has the sign of the divisor.
Parameters¶
- y: A
Returns¶
- A
eq¶
Parameters¶
- y: box->A
Returns¶
- Bool val
ne¶
Parameters¶
- y: box->A
Returns¶
- Bool val
lt¶
Parameters¶
- y: box->A
Returns¶
- Bool val
le¶
Parameters¶
- y: box->A
Returns¶
- Bool val
ge¶
Parameters¶
- y: box->A
Returns¶
- Bool val
gt¶
Parameters¶
- y: box->A
Returns¶
- Bool val
min¶
Parameters¶
- y: A
Returns¶
- A
max¶
Parameters¶
- y: A
Returns¶
- A
hash¶
Returns¶
- USize val
hash64¶
Returns¶
- U64 val
string¶
Returns¶
- String iso^
i8¶
Returns¶
- I8 val
i16¶
Returns¶
- I16 val
i32¶
Returns¶
- I32 val
i64¶
Returns¶
- I64 val
i128¶
Returns¶
- I128 val
ilong¶
Returns¶
- ILong val
isize¶
Returns¶
- ISize val
u8¶
Returns¶
- U8 val
u16¶
Returns¶
- U16 val
u32¶
Returns¶
- U32 val
u64¶
Returns¶
- U64 val
u128¶
Returns¶
- U128 val
ulong¶
Returns¶
- ULong val
usize¶
Returns¶
- USize val
f32¶
Returns¶
- F32 val
f64¶
Returns¶
- F64 val
i8_unsafe¶
Returns¶
- I8 val
i16_unsafe¶
Returns¶
- I16 val
i32_unsafe¶
Returns¶
- I32 val
i64_unsafe¶
Returns¶
- I64 val
i128_unsafe¶
Returns¶
- I128 val
ilong_unsafe¶
Returns¶
- ILong val
isize_unsafe¶
Returns¶
- ISize val
u8_unsafe¶
Returns¶
- U8 val
u16_unsafe¶
Returns¶
- U16 val
u32_unsafe¶
Returns¶
- U32 val
u64_unsafe¶
Returns¶
- U64 val
u128_unsafe¶
Returns¶
- U128 val
ulong_unsafe¶
Returns¶
- ULong val
usize_unsafe¶
Returns¶
- USize val
f32_unsafe¶
Returns¶
- F32 val
f64_unsafe¶
Returns¶
- F64 val
compare¶
Parameters¶
- that: box->A