NAME

csng - convert to single-precision

SYNOPSIS

v = csng(NumExpr)

DESCRIPTION

Csng converts the value specified by its argument into single-precision and returns the result.  The argument may be any numeric expression. 

EXAMPLE

The program
	a# = 831.6431667#
	print a#; csng(a#)
produces
	831.6431667000002  831.6432 
The value of the double-precision variable a# is rounded at the seventh digit by csng during the conversion to single-precision. 

SEE ALSO

cint, cdbl

USAGE NOTES

The actual number of digits in the fractional part of the result depends on the hardware floating-point implementation of the system. 

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber