190
Platforms
©2000-2008 Tibbo Technology Inc.
Bin Function
Function:
Converts unsigned 16-bit numeric value (word) into its
binary string representation.
Syntax:
bin(num as integer) as string
See Also:
,
,
,
,
,
Part
Description
num
Value to convert.
Details
Standard "&b" prefix is added at the beginning of the string.
Examples
dim
s
as
string
s = bin(34)
' result will be '&b100010'
Cfloat Function
Function:
Verifies whether the value of a floating-point variable is
valid. Returns 0- VALID if the floating point value is OK,
and 1- INVALID if the floating-point value is invalid.
Syntax:
cfloat(byref num as real) as valid_invalid
See Also:
,
Part
Description
num
Variable to check.
Details
Floating-point calculations can lead to invalid result (#INF, -#INF errors, as per
IEEE specification). When your application is in the
mode you will get a
if such an error is encountered. In the release mode the Virtual
Machine won't generate an exception, yet your application may need to know if a
certain floating-point variable contains correct value. This is where cfloat function
comes handy.
Examples
207
199
208
200
197
195
199
210
200
209
194
27
29