Basic computer language commands

Basic computer programming language

CSNG Function

Purpose:

To convert x to a single-precision number.

Syntax:

CSNG(x)

Comments:

x must be a numeric expression (see the CINT and CDBL functions).

Examples:

10 A#=975.3421222#
20 PRINT A#; CSNG(A#)
RUN
 975.3421222 975.3421

BASIC commands Main Menu

Index