# toggleRadix(a)

Changes points to commas- and vice versa.

### Syntax

o_toggleRadix(a)
  a: scalar Text - numbers as input string
  return: Text - string with "," replaced by "." or vice versa depending upon inout

### Usage

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

### Location

menu: veeos ==> data ==> Formatting ==> toggleRadix

library: dataLib

### Example

o_toggleRadix("23,45 24,34 89,01") returns "23.45 24.34 89.01" and
o_toggleRadix("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

uses comma2point() and point2comma()

### Supported On

VEE7.0+, all platforms

### See Also

comma2point, point2Comma, strReplace

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:29.