209
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Strsum Function
Function:
Calculates 16-bit (word) sum of ASCII codes of all
characters in a string.
Syntax:
strsum(byref sourcestr as string) as word
See Also:
---
Part
Description
sourcestr
String to work on
Details
This function is useful for checksum calculation.
Examples
w = strsum(
"012"
)
' will return 147 (48+49+50).
Strtof Function
Function:
Converts string representation of a real value into a real
value.
Syntax:
strtof(byref str as string) as real
See Also:
,
Part
Description
str
String to convert.
Details
You must keep in mind that floating-point calculations are inherently imprecise.
Not every value can be converted into its exact floating-point representation. Also,
strtof can be invoked implicitly. Examples below illustrates this.
Examples
194
207
210