Difference between revisions of "CSNG"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
imported>Clippy
Line 1: Line 1:
 
'''Purpose:'''
 
'''Purpose:'''
To convert x to a single-precision number.
+
To convert x to a [[SINGLE]]-precision number.
  
 
'''Syntax:''' CSNG(x)
 
'''Syntax:''' CSNG(x)

Revision as of 04:32, 7 September 2009

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).

Example:

A# = 975.3421222#
PRINT A#; CSNG(A#)
975.3421222 975.3421


See also: CDBL, CLNG, CINT, INT


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage