Revision history for KeyPgVal


Revision [21171]

Last edited on 2016-03-13 11:36:28 by fxm [Formatting]
Additions:





Revision [20579]

Edited on 2016-02-10 16:10:17 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Val** ( [[KeyPgByref|byref]] //str// [[KeyPgAs|as]] [[KeyPgConstQualifier|const]] [[KeyPgString|string]] ) [[KeyPgAs|as]] [[KeyPgDouble|double]]
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Val** ( [[KeyPgByref|byref]] //str// [[KeyPgAs|as]] [[KeyPgConstQualifier|const]] [[KeyPgWstring|wstring]] ) [[KeyPgAs|as]] [[KeyPgDouble|double]]
Returns a converted ##[[KeyPgDouble|Double]]## precision number
If you want to get an integer value from a string, consider using ##[[KeyPgValint|ValInt]]## or ##[[KeyPgVallng|ValLng]]## instead. They are faster, since they don't use floating-point numbers, and only ##[[KeyPgVallng|ValLng]]## provides full 64-bit precision for ##[[KeyPgLongint|LongInt]]## types.
If you want to convert a number into string format, use the ##[[KeyPgStr|Str]]## function.
- ##[[KeyPgCdbl|Cdbl]]##
- ##[[KeyPgValint|Valint]]##
- ##[[KeyPgValuint|Valuint]]##
- ##[[KeyPgVallng|Vallng]]##
- ##[[KeyPgValulng|Valulng]]##
- ##[[KeyPgStr|Str]]##
- ##[[KeyPgChr|Chr]]##
- ##[[KeyPgAsc|Asc]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgWstring wstring]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
Returns a converted ##[[KeyPgDouble Double]]## precision number
If you want to get an integer value from a string, consider using ##[[KeyPgValint ValInt]]## or ##[[KeyPgVallng ValLng]]## instead. They are faster, since they don't use floating-point numbers, and only ##[[KeyPgVallng ValLng]]## provides full 64-bit precision for ##[[KeyPgLongint LongInt]]## types.
If you want to convert a number into string format, use the ##[[KeyPgStr Str]]## function.
- ##[[KeyPgCdbl Cdbl]]##
- ##[[KeyPgValint Valint]]##
- ##[[KeyPgValuint Valuint]]##
- ##[[KeyPgVallng Vallng]]##
- ##[[KeyPgValulng Valulng]]##
- ##[[KeyPgStr Str]]##
- ##[[KeyPgChr Chr]]##
- ##[[KeyPgAsc Asc]]##


Revision [17689]

Edited on 2015-06-12 06:08:43 by FxMwikki [Suppressed the no-relevant keyword 'Overload' in Syntax]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** [[KeyPgOverload overload]] ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]


Revision [13981]

Edited on 2008-11-30 07:43:35 by JeffMarshall [name case fixup]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** [[KeyPgOverload overload]] ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgWstring wstring]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** [[KeyPgOverload overload]] ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgWstring wstring]] ) [[KeyPgAs as]] [[KeyPgDouble double]]


Revision [13905]

Edited on 2008-11-28 18:51:46 by LaananFisher [Fixed: const-correctness]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** [[KeyPgOverload overload]] ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgWstring wstring]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** [[KeyPgOverload overload]] ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Val** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgWstring wstring]] ) [[KeyPgAs as]] [[KeyPgDouble double]]


Revision [13828]

Edited on 2008-10-30 13:02:52 by CountingPine [Fixed: const-correctness]
Additions:
Returns a converted ##[[KeyPgDouble Double]]## precision number
If the first character of the string is invalid, ##**Val**## will return ##0##.
##**Val**("10")## will return ##10.0##, and ##**Val**("10.10")## will return ##10.1##. The function parses the string from the left, skipping any white space, and returns the longest number it can read, stopping at the first non-suitable character it finds. Scientific notation is recognized, with ##"D"## or ##"E"## used to specify the exponent.
##**Val**## can be used to convert integer numbers in binary / octal / hexadecimal format, if they have the relevant identifier (##"&B"## / ##"&O"## / ##"&H"##) prefixed, for example: ##**Val**("&HFF")## returns ##255##.
If you want to get an integer value from a string, consider using ##[[KeyPgValint ValInt]]## or ##[[KeyPgVallng ValLng]]## instead. They are faster, since they don't use floating-point numbers, and only ##[[KeyPgVallng ValLng]]## provides full 64-bit precision for ##[[KeyPgLongint LongInt]]## types.
dim a as string, b as double
a = "2.1E+30xa211"
2.1E+30xa211 2.1e+030
- ##[[KeyPgCdbl Cdbl]]##
- ##[[KeyPgValuint Valuint]]##
- ##[[KeyPgValulng Valulng]]##
Deletions:
Returns a converted ##[[KeyPgDouble Double]]## precision number.
If the first character of the string is invalid, ##**Val**## will return a 0.
##**Val**##("10") will return 10.0, and ##**Val**##("10.10") will return 10.1. The function parses the string from the left, skipping any white space, and returns the longest number it can read, stopping at the first non-suitable character it finds. Scientific notation is recognized, with ##"D"## or ##"E"## used to specify the exponent.
##**Val**## can be used to convert integer numbers in binary / octal / hexadecimal format, if they have the relevant identifier (##"&B"## / ##"&O"## / ##"&H"##) prefixed, for example: ##**Val**("&HFF")## returns 255.
If you want to return an integer, consider using ##[[KeyPgValint ValInt]]## or ##[[KeyPgVallng ValLng]]## instead. They are faster, since they don't use floating-point numbers, and only ##[[KeyPgVallng ValLng]]## provides full 64-bit precision for ##[[KeyPgLongint LongInt]]## types.
dim a as string, b as integer
a = "20xa211"
20xa211 20


Revision [11688]

The oldest known version of this page was created on 2007-11-10 11:05:35 by JeffMarshall [Fixed: const-correctness]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode