ceil
Rounds toward positive infinity
Syntax
Description
Examples
Input Arguments
Algorithms
- yand- ahave the same- fimathobject and- DataTypeproperty.
- When the - DataTypeproperty of- ais- single,- double, or- boolean, the- numerictypeof- yis the same as that of- a.
- When the fraction length of - ais zero or negative,- ais already an integer, and the- numerictypeof- yis the same as that of- a.
- When the fraction length of - ais positive, the fraction length of- yis- 0, its sign is the same as that of- a, and its word length is the difference between the word length and the fraction length of- a, plus one bit. If- ais signed, then the minimum word length of- yis- 2. If- ais unsigned, then the minimum word length of- yis- 1.
Extended Capabilities
Version History
Introduced in R2008a
See Also
convergent | fix | floor | nearest | round
