Difference between revisions of "CSNG"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 1: Line 1:
 
'''CSNG'''
 
'''CSNG'''
To converts a value to the closest [[SINGLE]]-precision number.
+
To converts a numerical value to the closest [[SINGLE]]-precision number.
  
  

Revision as of 04:12, 2 June 2011

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


Syntax: CSNG(n)


  • n must be a numeric value (see the CINT and CDBL functions).
  • Also used to define a value as SINGLE-precision.


Example:

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

975.3421222      975.3421


See also:

CDBL, CLNG, CINT, INT, _ROUND




Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page