1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-10 05:25:14 +00:00
QB64-PE/internal/help/CSNG.txt

33 lines
655 B
Plaintext
Raw Normal View History

'''CSNG'''
To converts a numerical value to the closest [[SINGLE]]-precision number.
2016-03-18 11:36:04 +00:00
{{PageSyntax}}
:: singlevalue = '''CSNG('''''expression''''')'''
2016-03-18 11:36:04 +00:00
{{Parameters}}
* The ''expression'' is any [[TYPE]] of literal or variable numerical value or mathematical calculation.
2016-03-18 11:36:04 +00:00
{{PageDescription}}
* Returns the closest [[SINGLE]] decimal point value
* Also used to define a value as [[SINGLE]]-precision up to 7 decimals.
2016-03-18 11:36:04 +00:00
''Example:''
{{CodeStart}}
A# = 975.3421222#
PRINT A#, CSNG(A#)
{{CodeEnd}}
2016-03-18 11:36:04 +00:00
{{OutputStart}}975.3421222      975.3421
{{OutputEnd}}
''See also:''
2016-03-18 11:36:04 +00:00
* [[CDBL]], [[CLNG]]
* [[CINT]], [[INT]]
* [[_ROUND]]
{{PageNavigation}}