Inf: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
The '''Inf''' [[internal function]] returns the [[largest possible number]] in [[Business Rules!]] on the current system. For current [[DOS]], [[Network]], [[Unix]] and [[Linux]] systems, Inf is [[1.000000E+307]]. To find the [[smallest number]], use PRINT 1/INF.
The '''Inf''' [[internal function]] returns the [[largest possible number]] in [[Business Rules!]] on the current system. For current [[DOS]], [[Network]], [[Unix]] and [[Linux]] systems, Inf is [[1.000000E+307]]. To find the [[smallest number]], use PRINT 1/INF.
====Comments and examples====
{{:Append}}


<noinclude>
<noinclude>
[[Category:Internal Functions]]
[[Category:Internal Functions]]
</noinclude>
</noinclude>

Revision as of 17:17, 26 January 2012

The Inf internal function returns the largest possible number in Business Rules! on the current system. For current DOS, Network, Unix and Linux systems, Inf is 1.000000E+307. To find the smallest number, use PRINT 1/INF.

Comments and examples

To append string2$ to string1$ means to join string2$ to the end of string1$.

To append to the end of a String you should (for maximum speed of code execution) use

X$(inf:0)="append this to end"

OR

X$(inf:inf)="append this to the end"

Here, inf denotes infinity.

So X$(inf:inf) means "the substring of X$ starting at infinity". This is particularly useful when you don't know how long your string is and do not want to calculate its length.

see also: prepend