Forum Discussion
Szymon
4 years agoNew Contributor II
Puh! Apologies, that I have not described everything I had tried before posting.
Among others, I had tried parseFloat as well.
I wonder if you have tried it yourself, jolly good. Pipeline is attached
parseFloat($amount.toFixed(2))
will remove the decimal ‘.00’, so this brings nothing.
As a result you would get: 1000 → “1000.00” → 1000
Again I need to add decimals to 1000 to get 1000.00, NOT to “1000.00”
{
"amount" : 1000.00
}
anyone?
thank you.
toDouble_2022_01_12.slp (5.9 KB)
- dimitri_hristov6 years agoContributor
I’ve put together a sample pipeline. In it I use a Mapper Snap to create the needed input for the XML Formatter Snap.
XML_with_Mapper_2020_06_29.slp (6.8 KB)
Hope it helps to clarify, or muddify 🙂 the matter further.
BR,
Dimitri