Examples for 'xfun::decimal_dot'


Evaluate an expression after forcing the decimal point to be a dot

Aliases: decimal_dot

Keywords:

### ** Examples

opts = options(OutDec = ",")
as.character(1.234)  # using ',' as the decimal separator
[1] "1,234"
print(1.234)  # same
[1] 1,234
xfun::decimal_dot(as.character(1.234))  # using dot
[1] "1.234"
xfun::decimal_dot(print(1.234))  # using dot
[1] 1.234
options(opts)

[Package xfun version 0.49 Index]