comma2point(a)

Replaces commas with points.

Function only- no corresponding object


Syntax

o_comma2point(a)
a: scalar Text - numbers as input string
return: Text -  string with "," replaced by "."

Usage

Designed to be used when presenting results of numerical computations in text format.

Location

menu: no menu pick - to access use the Function and Object browser

library: dataLib

Example

o_comma2point("23,45   24,34   89,01") returns "23.45   24.34   89.01"

Notes

The world is split between two major groups that use a decimal radix of "," or ".". This function is provided as a quick way to switch between the two when presenting numbers in Text format. Note that strReplace() would also work but it uses loops so this one is faster.

Reference

Dependencies

Supported On

VEE7.0+, all platforms

See Also

point2Comma, strReplacetoggleRadix


© 2015-2025. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 03 February 2023 13:03.