CSNG - QB64 Wiki

CSNG

From QB64 Wiki

Revision as of 04:12, 2 June 2011 by Clippy (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page