Module : lang.float

Version : 1.0.0

Module Overview

This module provides lang library operations on float values defined by the language specification 2020R1.

Functions

abs
I

IEEE abs operation.

acos
I

Returns the arccosine of a float value.

asin
I

Returns the arcsine of a float value.

atan
I

Returns the arctangent of a float value.

atan2
I

Performs the 2-argument arctangent operation.

cbrt
I

Returns the cube root of a float value.

ceiling
I

Rounds a float up to the closest integral value.

cos
I

Returns the cosine of a float value.

cosh
I

Returns the hyperbolic cosine of a float value.

exp
I

Raises Euler's number to a power.

floor
I

Rounds a float down to the closest integral value.

fromBitsInt
I

Returns the float that is represented in IEEE 64-bit floating point by x.

fromHexString
I

Return the float value represented by s.

fromString
I

Return the float value represented by s.

isFinite
I

Tests whether a float is finite.

isInfinite
I

Tests whether a float is infinite.

isNaN
I

Tests whether a float is NaN.

log
I

Returns the natural logarithm of a float value Corresponds to IEEE log operation.

log10
I

Returns the base 10 logarithm of a float value.

max
I

Maximum of zero or more float values.

min
I

Minimum of zero or more float values.

pow
I

Raises one float value to the power of another float values.

round
I

Round a float value to the closest integral value.

sin
I

Returns the sine of a float value.

sinh
I

Returns the hyperbolic sine of a float value.

sqrt
I

Returns the square root of a float value.

sum
I

Sum of zero or more float values.

tan
I

Returns the tangent of a float value.

tanh
I

Returns the hyperbolic tangent of a float value.

toBitsInt
I

Returns IEEE 64-bit binary floating point format representation of x as an int.

toHexString
I

Returns a string that represents x as a hexadecimal floating point number.

Constants

PI

The number π

E

Euler's number

NaN

IEEE not-a-number value

Infinity

IEEE positive infinity