Difference between revisions of "CSNG"

From QB64 Wiki
Jump to navigation Jump to search
(Created page with ''''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#…')
 
Line 8: Line 8:
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#
  A#=975.3421222#
  PRINT A#; CSNG(A#)
  PRINT A#; CSNG(A#)
   
   
  975.3421222 975.3421
  975.3421222 975.3421

Revision as of 16:55, 31 August 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