ceil()

ceil()

Overview

The ceil() function takes a decimalValue as an argument, and returns the nearest largest integer to the given decimal value.

Return Type

  • Number

Syntax

<variable> = <decimalValue>.ceil();

(OR)

<variable> = ceil( <decimalValue>);
ParameterDescriptionData type
<variable>Variable which will contain the returned value.NUMBER
<decimalValue>The nearest largest integer to this value will be returned.DECIMAL

Examples

number = 10.1;
ceilValue = number.ceil();        // returns 11;

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com