SDIV


The SDIV function performs string division of two base 10 string numbers. The result is rounded to 14 decimal places.

 

COMMAND SYNTAX

SDIV(expr1, expr2)

 

SYNTAX ELEMENTS

expr1 and expr2 are strings consisting of numeric characters, with either optionally including a decimal part.

 

NOTES

The SDIV function can be used with numbers that may exceed a valid range with standard arithmetic operators.

The PRECISION declaration has no effect on the value returned by SDIV.

 

EXAMPLES

A = 2
B = 3
CRT SDIV(A,B)

Displays 0.66666666666666 to the screen.

CRT SDIV(355,113)

Displays 3.14159292035398 to the screen.


jBC