Skip to main content
Solved

How to replace decimal comma to dot to attribute value?

  • December 14, 2022
  • 1 reply
  • 539 views

This is probably very trivial topic but I cannot get the correct result from this:

 

@ReplaceString(@Value(ATTRIBUTE),,,.)

 

So idea would be to change e.g input value 1,6 to 1.6.

 

Or should I change some FME attribute value to have decimal separator as . instead of , ?

 

EDIT:

I get it working by this workaround. Maybe there's is some fancier solution image

Best answer by tomfriedl

@ReplaceString(@Value(test),",",".",caseSensitive=TRUE)

or

Transformer StringReplacer

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • 177 replies
  • Best Answer
  • December 14, 2022

@ReplaceString(@Value(test),",",".",caseSensitive=TRUE)

or

Transformer StringReplacer