Skip to content

Float32

graph BT
N1["Float32"] -->|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 #extern;
Is enum false
Is sealed false
Is extern true
Is abstract false
Is generator false
Has value semantics true
Has stored properties false
Should register destructor false
Has atomic memory true
Is copy assignable true
Is zero initializable true

Const Expressions

size

const! size = 32

Functions

min

#Gambol.function.alwaysinline
#default
min () -> Float32

denorm_min

#Gambol.function.alwaysinline
#default
denorm_min () -> Float32

max

#Gambol.function.alwaysinline
#default
max () -> Float32

Methods

construct

#default
#Gambol.function.alwaysinline
construct (s @Self) -> Self

sign

#Gambol.function.alwaysinline
sign (s @Self) -> Float32

abs

#Gambol.function.alwaysinline
abs (s @Self) -> Float32

is_nan

#Gambol.function.alwaysinline
is_nan (s @Self) -> Bool

is_inf

#Gambol.function.alwaysinline
is_inf (s @Self) -> Bool

trem

#Gambol.function.alwaysinline
#default
trem (s @Self, o @Self) -> Float32

frem

#Gambol.function.alwaysinline
frem (s @Self, o @Self) -> Float32

erem

#Gambol.function.alwaysinline
erem (s @Self, o @Self) -> Float32

str

#Gambol.function.alwaysinline
str (s @Self, decimal_digits: UInt64 = 0, rounding: Int8 = RoundingMode.kNearest, scientific: Bool = false, upper: Bool = false) -> String

sqrt

#Gambol.function.alwaysinline
#default
sqrt (s @Self) -> Float32

sin

#Gambol.function.alwaysinline
#default
sin (s @Self) -> Float32

cos

#Gambol.function.alwaysinline
#default
cos (s @Self) -> Float32

pow

#Gambol.function.alwaysinline
#default
pow (s @Self, exp @Self) -> Float32

exp

#Gambol.function.alwaysinline
#default
exp (s @Self) -> Float32

exp2

#Gambol.function.alwaysinline
#default
exp2 (s @Self) -> Float32

exp10

#Gambol.function.alwaysinline
#default
exp10 (s @Self) -> Float32

log

#Gambol.function.alwaysinline
#default
log (s @Self) -> Float32

log2

#Gambol.function.alwaysinline
#default
log2 (s @Self) -> Float32

log10

#Gambol.function.alwaysinline
#default
log10 (s @Self) -> Float32

fma

#Gambol.function.alwaysinline
#default
fma (s @Self, other_mul @Self, other_add @Self) -> Float32

minnum

#Gambol.function.alwaysinline
#default
minnum (s @Self, o @Self) -> Float32

maxnum

#Gambol.function.alwaysinline
#default
maxnum (s @Self, o @Self) -> Float32

minimum

#Gambol.function.alwaysinline
#default
minimum (s @Self, o @Self) -> Float32

maximum

#Gambol.function.alwaysinline
#default
maximum (s @Self, o @Self) -> Float32

copysign

#Gambol.function.alwaysinline
#default
copysign (s @Self, o @Self) -> Float32

floor

#Gambol.function.alwaysinline
#default
floor (s @Self) -> Float32

ceil

#Gambol.function.alwaysinline
#default
ceil (s @Self) -> Float32

trunc

#Gambol.function.alwaysinline
#default
trunc (s @Self) -> Float32

round

#Gambol.function.alwaysinline
#default
round (s @Self) -> Float32

roundeven

#Gambol.function.alwaysinline
#default
roundeven (s @Self) -> Float32

Unary Operators

-

#Gambol.function.alwaysinline
#default
- (s @Self) -> Float32

Binary Operators

=

#default
= (s @Self, o @Self) -> Self

==

#Gambol.function.alwaysinline
#default
== (s @Self, o @Self) -> Bool

<

#Gambol.function.alwaysinline
#default
< (s @Self, o @Self) -> Bool

<=

#Gambol.function.alwaysinline
#default
<= (s @Self, o @Self) -> Bool

>

#Gambol.function.alwaysinline
#default
> (s @Self, o @Self) -> Bool

>=

#Gambol.function.alwaysinline
#default
>= (s @Self, o @Self) -> Bool

+

#Gambol.function.alwaysinline
#default
+ (s @Self, o @Self) -> Float32

+=

#Gambol.function.alwaysinline
#default
+= (s @Self, o @Self) -> Self

-

#Gambol.function.alwaysinline
#default
- (s @Self, o @Self) -> Float32

-=

#Gambol.function.alwaysinline
#default
-= (s @Self, o @Self) -> Self

*

#Gambol.function.alwaysinline
#default
* (s @Self, o @Self) -> Float32

*=

#Gambol.function.alwaysinline
#default
*= (s @Self, o @Self) -> Self

/

#Gambol.function.alwaysinline
#default
/ (s @Self, o @Self) -> Float32

/=

#Gambol.function.alwaysinline
#default
/= (s @Self, o @Self) -> Self

%

#Gambol.function.alwaysinline
% (s @Self, o @Self) -> Float32

%=

#Gambol.function.alwaysinline
%= (s @Self, o @Self) -> Self

**

#Gambol.function.alwaysinline
** (s @Self, o @Self) -> Float32

**=

#Gambol.function.alwaysinline
**= (s @Self, o @Self) -> Self

Casts To

  • Int8
  • UInt8
  • Int16
  • UInt16
  • Int32
  • UInt32
  • Int64
  • UInt64
  • Int128
  • UInt128
  • Int256
  • UInt256
  • Int512
  • UInt512
  • Float64
  • NInt
  • UNInt
  • Bool
  • NFloat
  • Float
  • Int