This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:int [2016/08/12 11:59] admin |
en:int [2016/08/13 08:35] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Int (Function) ===== | ===== Int (Function) ===== | ||
==== Format ==== | ==== Format ==== | ||
- | int ( [[expressions|epression]] ) | + | int ( [[expressions|expression]] ) |
- | returns | + | returns |
==== Description ==== | ==== Description ==== | ||
- | Convert [[expressions|epression]] to an integer (whole) number. Int will convert a string or a float to an integer value. If the expression can not be converted then a zero will be returned. | + | Convert [[expressions|expression]] to an integer (whole) number. Int will convert a string or a float to an integer value. If the expression can not be converted then a zero will be returned. |
+ | |||
+ | ^Value^int()^ceil()^floor()^ | ||
+ | |-4.56|-4|-4|-5| | ||
+ | |-0.56|0|0|-1| | ||
+ | |0.56|0|1|0| | ||
+ | |5.56|5|6|5| | ||
==== See Also ==== | ==== See Also ==== | ||
{{page> | {{page> | ||