ballerina/lang.float : 1.0.0

Module Overview

The lang.float module corresponds to basic type float.

Functions

[31]

abs

Returns the IEEE absolute value of a float value.

acos

Returns the arccosine of a float value.

asin

Returns the arcsine of a float value.

atan

Returns the arctangent of a float value.

atan2

Performs the 2-argument arctangent operation.

cbrt

Returns the cube root of a float value.

ceiling

Rounds a float up to the closest integral value.

cos

Returns the cosine of a float value.

cosh

Returns the hyperbolic cosine of a float value.

exp

Raises Euler's number to a power.

floor

Rounds a float down to the closest integral value.

fromBitsInt

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

fromHexString

Return the float value represented by a string.

fromString

Returns the float value represented by a string.

isFinite

Tests whether a float is finite.

isInfinite

Tests whether a float is infinite.

isNaN

Tests whether a float is NaN.

log

Returns the natural logarithm of a float value.

log10

Returns the base 10 logarithm of a float value.

max

Returns the maximum of zero or more float values.

min

Returns the minimum of zero or more float values.

pow

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

round

Rounds a float value to the closest integral value.

sin

Returns the sine of a float value.

sinh

Returns the hyperbolic sine of a float value.

sqrt

Returns the square root of a float value.

sum

Returns the sum of zero or more float values.

tan

Returns the tangent of a float value.

tanh

Returns the hyperbolic tangent of a float value.

toBitsInt

Returns IEEE 64-bit binary floating point format representation of a float value as an int.

toHexString

Returns a string that represents a float value as a hexadecimal floating point number.

Constants

[4]

E

Euler's number.

Infinity

IEEE positive infinity.

NaN

IEEE not-a-number value.

PI

The number π.