number

number:is_odd?

Question whether given number is odd

number:is_even?

Question whether given number is even or not

number:is_divisible_by?

Question whether given number is divisible by another number

number:cent_to_words

Convert cents to words (english description)

number:dollar_to_words

Convert dollars to words (english description)

number:equal?

Question whether two things are equal when converted to type_float

number:in_range?

Question if a number is included in a given inclusive range

number:negative?

Question whether a number is negative -- less than zero.

number:positive?

Question whether a number is positive -- bigger than zero.

number:round

Round a floating point number

number:square

Square a number

number:to_english_notation

Format number to english notation (1,235)

number:to_french_notation

Format number to french notation (1 234,56)

number:to_human_readable

Make number human readable

number:to_words

Convert a number to words (english)

number:zero?

Question whether a number is zero

number:calc_percentage

Calculate percentage of given arguments

number:add

Add two arbitrary precision numbers

number:compare

Returns 0 if the two operands are equal, 1 if the left_operand is larger than the right_operand, -1 otherwise.

number:divide

Divide two arbitrary precision numbers.

number:modulus

Get the remainder of dividing dividend by divisor. Unless divisor is zero, the result has the same sign as dividend.

number:multiply

Multiply two arbitrary precision numbers

number:power

Raise an arbitrary precision number to another

number:power_module

Raise an arbitrary precision number to another, reduced by a specified modulus

number:square_root

Get the square root of an arbitrary precision number

number:subtract

Subtract one arbitrary precision number from another

number:absolute

Return the absolute value of the given number

number:fix_decimal_points

Format given number to a fix number of decimal points (default: 2)

number:convert_bytes_to_human_readable

Convert bytes to KB, MB, GB, TB, etc (more human readable)

number:format

Format a given number (decimal point, decimal separator, thousand separator)

number:floor

Returns the next lowest integer value (as float) by rounding down value if necessary.

number:acos

Returns the arc cosine of a given number.

number:acosh

Returns the inverse hyperbolic cosine of a given number.

number:asin

Returns the arc sine of a given number.

number:asinh

Returns the inverse hyperbolic sine of a given number.

number:atan

Return the arc tangent of a given number.

number:atan_of_2

Return the arc tangent of 2 given numbers.

Copyright ©2013-2022 SunSed®. All rights reserved.