Skip to content

Conversion Functions

Conversion Functions

This is a group of functions that provide conversion of data from one format into another.

FunctionAction
CharToStringConverting a symbol code into a one-character string
DoubleToStringConverting a numeric value to a text line with a specified accuracy
EnumToStringConverting an enumeration value of any type to string
NormalizeDoubleRounding of a floating point number to a specified accuracy
StringToDoubleConverting a string containing a symbol representation of number into number of double type
StringToIntegerConverting a string containing a symbol representation of number into number of int type
StringToTimeConverting a string containing time or date in “yyyy.mm.dd [hh:mi]” format into datetime type
TimeToStringConverting a value containing time in seconds elapsed since 01.01.1970 into a string of “yyyy.mm.dd hh:mi” format
IntegerToStringConverting int into a string of preset length
ShortToStringConverting symbol code (unicode) into one-symbol string
ShortArrayToStringCopying array part into a string
StringToShortArraySymbol-wise copying a string to a selected part of array of ushort type
CharArrayToStringConverting symbol code (ansi) into one-symbol array
StringToCharArraySymbol-wise copying a string converted from Unicode to ANSI, to a selected place of array of uchar type
CharArrayToStructCopy uchar type array to POD structure
StructToCharArrayCopy POD structure to uchar type array
ColorToARGBConverting color type to uint type to receive ARGB representation of the color.
ColorToStringConverting color value into string as “R,G,B”
StringToColorConverting “R,G,B” string or string with color name into color type value
StringFormatConverting number into string according to preset format
Last updated on