1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-04 04:50:22 +00:00
QB64-PE/internal/help/_CEIL__1111.txt
Roland Heyder aeb9c0668b Updates help files for use with new Wiki parser (2nd try)
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
2022-05-21 00:18:31 +02:00

40 lines
1,013 B
Plaintext

{{QBDLDATE:05-20-2022}}
{{QBDLTIME:23:06:55}}
{{DISPLAYTITLE:_CEIL}}
The [[_CEIL]] function rounds a numeric value up to the next whole number or [[INTEGER]] value.
{{PageSyntax}}
: {{Parameter|result}} = [[_CEIL]]({{Parameter|expression}})
* [[_CEIL]] returns he smallest integral value that is greater than the numerical {{Parameter|expression}} (as a floating-point value).
* This means that [[_CEIL]] rounds up for both positive and negative numbers.
{{PageAvailability}}
* '''QB64 1.0 and up''' (QB64 Team)
* '''QBPE 0.5 and up''' (QB64 Phoenix Edition)
{{PageExamples}}
''Example:'' Displaying the rounding behavior of [[INT]], [[CINT]] and [[FIX]] vs [[_CEIL]].
{{CodeStart}}
PRINT INT(2.5), CINT(2.5), FIX(2.5), _CEIL(2.5)
PRINT INT(-2.5), CINT(-2.5), FIX(-2.5), _CEIL(-2.5)
{{CodeEnd}}
{{OutputStart}} 2 2 2 3
-3 -2 -2 -2
{{OutputEnd}}
{{PageSeeAlso}}
* [[INT]], [[FIX]]
* [[CINT]], [[CLNG]],
* [[CSNG]], [[CDBL]]
* [[_ROUND]]
{{PageNavigation}}