Difference between revisions of "CSNG"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
Line 2: Line 2:
 
To convert x to a single-precision number.
 
To convert x to a single-precision number.
  
'''Syntax:'''
+
'''Syntax:''' CSNG(x)
CSNG(x)
 
  
 
'''Comments:'''
 
'''Comments:'''
x must be a numeric expression (see the CINT and CDBL functions).
+
 
 +
* x must be a numeric expression (see the CINT and CDBL functions).
  
 
'''Examples:'''
 
'''Examples:'''
A#=975.3421222#
+
 
PRINT A#; CSNG(A#)
+
:A#=975.3421222#
 +
:PRINT A#; CSNG(A#)
 
   
 
   
975.3421222 975.3421
+
:975.3421222 975.3421
 +
 
 +
 
 +
''See also:'' [[CDBL]], [[CLNG]], [[CINT]]
 +
 
 +
 
 +
 
 +
==Navigation:==
 +
 
 +
[[Keyword_Reference_-_Alphabetical|Go to Keyword Reference - Alphabetical]]
 +
 
 +
[[Keyword Reference - By usage|Go to Keyword Reference - By usage]]

Revision as of 04:19, 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).

Examples:

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


See also: CDBL, CLNG, CINT


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage