Skip to content

NFloat

graph BT
N1["NFloat"] -->|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 = cfg!(`nfloat_size`)

Functions

min

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

denorm_min

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

max

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

Methods

construct

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

sign

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

abs

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

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) -> NFloat

frem

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

erem

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

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) -> NFloat

sin

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

cos

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

pow

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

exp

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

exp2

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

exp10

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

log

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

log2

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

log10

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

fma

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

minnum

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

maxnum

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

minimum

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

maximum

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

copysign

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

floor

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

ceil

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

trunc

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

round

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

roundeven

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

atomic_add

#Gambol.function.alwaysinline
#default
atomic_add (s @Self, o @Self, memory_order Int8 = Memory.kOrderMonotonic, volatile: Bool) -> NFloat

atomic_sub

#Gambol.function.alwaysinline
#default
atomic_sub (s @Self, o @Self, memory_order Int8 = Memory.kOrderMonotonic, volatile: Bool) -> NFloat

atomic_max

#Gambol.function.alwaysinline
#default
atomic_max (s @Self, o @Self, memory_order Int8 = Memory.kOrderMonotonic, volatile: Bool) -> NFloat

atomic_min

#Gambol.function.alwaysinline
#default
atomic_min (s @Self, o @Self, memory_order Int8 = Memory.kOrderMonotonic, volatile: Bool) -> NFloat

atomic_load

#Gambol.function.alwaysinline
#default
atomic_load (s @Self, memory_order Int8 = Memory.kOrderMonotonic, volatile: Bool) -> NFloat

atomic_store

#Gambol.function.alwaysinline
#default
atomic_store (s @Self, value NFloat, memory_order Int8 = Memory.kOrderMonotonic, volatile: Bool) -> Nil

atomic_exchange

#Gambol.function.alwaysinline
#default
atomic_exchange (s @Self, value NFloat, memory_order Int8 = Memory.kOrderMonotonic, volatile: Bool) -> NFloat

Unary Operators

-

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

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) -> NFloat

+=

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

-

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

-=

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

*

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

*=

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

/

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

/=

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

%

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

%=

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

**

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

**=

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

Casts To

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