QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

CSNG converts a numerical value to the closest SINGLE-precision number.

Syntax

singleValue! = CSNG(expression)

Parameter(s)

Description

Example(s)


 A# = 975.3421222#
 PRINT A#, CSNG(A#)


975.3421222      975.3421

See Also