Skip to main content
Version: 1.2.0

absoluteFloor

Using

Returns the largest integer less than or equal to the absolute value of the given number.

This function takes a floating-point number, rounds it down to the nearest integer, and then converts the result to a positive value.

  • For positive numbers, it returns the result of rounding down (Math.floor).
  • For negative numbers, it rounds down in absolute terms and returns a positive integer (e.g., -44.4 becomes 44).
Demo - use JSON
absoluteFloor(
)
56

Arguments

ArgumentTypeDescriptionExample
valuenumberThe number to process.15.9
13.2
14

Returns

number — Returns a positive integer, rounded down from the input.

Examples

absoluteFloor(15.9);
// 15

absoluteFloor(920.2);
// 920

absoluteFloor(-140.8);
// 140

absoluteFloor(9);
// 9

Resources

📦 Since:1.1.0
📦 Last updated:1.1.0
📦 Available in:1.3.0