ballerina/lang.float1.0.0

Module Overview

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

Functions

[31]

abs

IEEE abs operation.

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 `x`.

fromHexString

Return the float value represented by `s`.

fromString

Return the float value represented by `s`.

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 Corresponds to IEEE log operation.

log10

Returns the base 10 logarithm of a float value.

max

Maximum of zero or more float values.

min

Minimum of zero or more float values.

pow

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

round

Round 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

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 `x` as an int.

toHexString

Returns a string that represents `x` 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 π