CSNG

From QB64 Wiki
Revision as of 19:33, 3 January 2016 by imported>Clippy
Jump to navigation Jump to search

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


Syntax

singlevalue = CSNG(expression)


Parameters

  • The expression is any TYPE of literal or variable numerical value or mathematical calculation.


Description

  • Returns the closest SINGLE decimal point value
  • Also used to define a value as SINGLE-precision.


Example:

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

975.3421222      975.3421


See also:



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