Float
graph BT
N1["Float"] -->|inherits| N2["RealNumber"];
N2["RealNumber"] -->|inherits| N3["Number"];
N3["Number"] -->|inherits| N4["Stringable"];
N4["Stringable"] -->|inherits| N5["Any"];
Characteristics
Quality |
Value |
Inherits |
RealNumber |
Extends |
N/A |
Decorators |
#sealed; #Gambol.layout.c; |
Is enum |
false |
Is sealed |
true |
Is extern |
false |
Is abstract |
false |
Is generator |
false |
Has value semantics |
false |
Has stored properties |
true |
Should register destructor |
true |
Has atomic memory |
false |
Is copy assignable |
false |
Is zero initializable |
false |
Functions
parse
parse (str String, base Int32) -> Float
log_of_2
#Gambol.function.alwaysinline
log_of_2 (precision ULen = 128) -> Float
pi
#Gambol.function.alwaysinline
pi (precision ULen = 128) -> Float
euler
#Gambol.function.alwaysinline
euler (precision ULen = 128) -> Float
catalan
#Gambol.function.alwaysinline
catalan (precision ULen = 128) -> Float
Methods
construct
construct (s strictly @Self, precision NInt = 8) -> Self
sign
#Gambol.function.alwaysinline
sign (s @Self) -> Int
abs
#Gambol.function.alwaysinline
abs (s @Self) -> Float
trem
#Gambol.function.alwaysinline
trem (s @Self, o @Self) -> Int
frem
#Gambol.function.alwaysinline
frem (s @Self, o @Self) -> Int
erem
#Gambol.function.alwaysinline
erem (s @Self, o @Self) -> Int
is_nan
#Gambol.function.alwaysinline
is_nan (s @Self) -> Bool
is_inf
#Gambol.function.alwaysinline
is_inf (s @Self) -> Bool
is_zero
#Gambol.function.alwaysinline
is_zero (s @Self) -> Bool
is_regular
#Gambol.function.alwaysinline
is_regular (s @Self) -> Bool
is_int
#Gambol.function.alwaysinline
is_int (s @Self) -> Bool
str
str (s @Self, decimal_digits: ULen = 0, rounding: Int8 = RoundingMode.kNearest, scientific: Bool = false, upper: Bool = false) -> String
hash
#Gambol.function.alwaysinline
#strict
hash (s @Self, hasher strictly @ (Pointer, Len) -> Nil) -> Nil
sqrt
#Gambol.function.alwaysinline
sqrt (s @Self) -> Float
rec_sqrt
#Gambol.function.alwaysinline
rec_sqrt (s @Self) -> Float
root
#Gambol.function.alwaysinline
root (s @Self, n UInt64) -> Float
log
#Gambol.function.alwaysinline
log (s @Self) -> Float
log2
#Gambol.function.alwaysinline
log2 (s @Self) -> Float
log10
#Gambol.function.alwaysinline
log10 (s @Self) -> Float
cos
#Gambol.function.alwaysinline
cos (s @Self) -> Float
sin
#Gambol.function.alwaysinline
sin (s @Self) -> Float
tan
#Gambol.function.alwaysinline
tan (s @Self) -> Float
csc
#Gambol.function.alwaysinline
csc (s @Self) -> Float
sec
#Gambol.function.alwaysinline
sec (s @Self) -> Float
cot
#Gambol.function.alwaysinline
cot (s @Self) -> Float
acos
#Gambol.function.alwaysinline
acos (s @Self) -> Float
asin
#Gambol.function.alwaysinline
asin (s @Self) -> Float
atan
#Gambol.function.alwaysinline
atan (s @Self) -> Float
cosh
#Gambol.function.alwaysinline
cosh (s @Self) -> Float
sinh
#Gambol.function.alwaysinline
sinh (s @Self) -> Float
tanh
#Gambol.function.alwaysinline
tanh (s @Self) -> Float
csch
#Gambol.function.alwaysinline
csch (s @Self) -> Float
sech
#Gambol.function.alwaysinline
sech (s @Self) -> Float
coth
#Gambol.function.alwaysinline
coth (s @Self) -> Float
acosh
#Gambol.function.alwaysinline
acosh (s @Self) -> Float
asinh
#Gambol.function.alwaysinline
asinh (s @Self) -> Float
atanh
#Gambol.function.alwaysinline
atanh (s @Self) -> Float
eint
#Gambol.function.alwaysinline
eint (s @Self) -> Float
li2
#Gambol.function.alwaysinline
li2 (s @Self) -> Float
gamma
#Gambol.function.alwaysinline
gamma (s @Self) -> Float
psi
#Gambol.function.alwaysinline
psi (s @Self) -> Float
zeta
#Gambol.function.alwaysinline
zeta (s @Self) -> Float
err
#Gambol.function.alwaysinline
err (s @Self) -> Float
bessel1
#Gambol.function.alwaysinline
bessel1 (s @Self, n Int64) -> Float
bessel2
#Gambol.function.alwaysinline
bessel2 (s @Self, n Int64) -> Float
ai
#Gambol.function.alwaysinline
ai (s @Self) -> Float
beta
#Gambol.function.alwaysinline
beta (s @Self, o @Self) -> Float
agm
#Gambol.function.alwaysinline
agm (s @Self, o @Self) -> Float
ceil
#Gambol.function.alwaysinline
ceil (s @Self) -> Float
floor
#Gambol.function.alwaysinline
floor (s @Self) -> Float
round
#Gambol.function.alwaysinline
round (s @Self) -> Float
round_even
#Gambol.function.alwaysinline
round_even (s @Self) -> Float
trunc
#Gambol.function.alwaysinline
trunc (s @Self) -> Float
frac
#Gambol.function.alwaysinline
frac (s @Self) -> Float
fma
#Gambol.function.alwaysinline
fma (s @Self, op1 @Self, op2 @Self) -> Float
fmma
#Gambol.function.alwaysinline
fmma (s @Self, op1 @Self, op2 @Self, op3 @Self) -> Float
Unary Operators
-
#Gambol.function.alwaysinline
- (s @Self) -> Float
Binary Operators
==
#Gambol.function.alwaysinline
== (s @Self, o @Self) -> Bool
<
#Gambol.function.alwaysinline
< (s @Self, o @Self) -> Bool
<=
#Gambol.function.alwaysinline
<= (s @Self, o @Self) -> Bool
>
#Gambol.function.alwaysinline
> (s @Self, o @Self) -> Bool
>=
#Gambol.function.alwaysinline
>= (s @Self, o @Self) -> Bool
+
#Gambol.function.alwaysinline
+ (s @Self, o @Self) -> Float
+=
#Gambol.function.alwaysinline
+= (s @Self, o @Self) -> Self
-
#Gambol.function.alwaysinline
- (s @Self, o @Self) -> Float
-=
#Gambol.function.alwaysinline
-= (s @Self, o @Self) -> Self
*
#Gambol.function.alwaysinline
* (s @Self, o @Self) -> Float
*=
#Gambol.function.alwaysinline
*= (s @Self, o @Self) -> Self
**
#Gambol.function.alwaysinline
** (s @Self, o @Self) -> Float
**=
#Gambol.function.alwaysinline
**= (s @Self, o @Self) -> Self
/
#Gambol.function.alwaysinline
/ (s @Self, o @Self) -> Float
/=
#Gambol.function.alwaysinline
/= (s @Self, o @Self) -> Self
%
#Gambol.function.alwaysinline
% (s @Self, o @Self) -> Float
%=
#Gambol.function.alwaysinline
%= (s @Self, o @Self) -> Self
Casts To
- Int8
- Int16
- Int32
- Int64
- Int128
- Int256
- Int512
- UInt8
- UInt16
- UInt32
- UInt64
- UInt128
- UInt256
- UInt512
- Int
- NInt
- UNInt
- Float32
- Float64
- NFloat
- Bool
Properties
__mpfr_t
__is_initialized