Ceiling – PB Docs 2017

Ceiling

DataWindow expression function

Description

Retrieves the smallest whole number that is greater than or equal to
a specified limit.

Syntax

Argument

Description

n

The number for which you want the smallest whole
number that is greater than or equal to it

Return value

The datatype of n. Returns the smallest whole number that is greater
than or equal to n.

Examples

These expressions both return -4:

This expression for a computed field returns ERROR if the value in
discount_amt is greater than the smallest whole number that is greater
than or equal to discount_factor times price. Otherwise, it returns
discount_amt:

To pass this validation rule, the value in discount_amt must be less
than or equal to the smallest whole number that is greater than or equal
to discount_factor times price:

See also

Int

Round

Truncate

Ceiling in the section called “Ceiling” in PowerScript Reference


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x