For the complete documentation index, see llms.txt. This page is also available as Markdown.

IncrementValue

Increment the integer part of a number

Method Signature

IncrementValue(number=[numeric])

Arguments

Argument
Type
Required
Description
Default

number

numeric

true

The number to increment the integer part of.

Examples

Increment 7

Run Example

incrementValue( 7 );

Result: 8

Increment 7.5

BoxLang increments the integer part of the number but returns the full value, including the decimal part.

Run Example

Result: 8.5

Additional Examples

Run Example

Last updated

Was this helpful?