Skip to main content
Space Cadet
Jan 5, 2024 8:50 AM UTC
Question

Numeric format

Hi,

I am stuck with a numeric format. I am buffering number from SAP like 1,234.00 and I want it as numeric because I need to use it for further calculation. But Tosca tells me that it can’t be numeric. Obviously it is because of the comma as thousand separator. It is not a big deal because with a ‘Set buffer’ function I can convert it to a number that looks like 1234.00 and then I can do a calculation like add 10. Then it looks like 1244.00. But problem is with a further verification where I come to the same problem where SAP shows 1,244.00 and my calculation is 1244.00 and the verification fails because number are not the same. I can somehow add the coma back but it is extra step and with the volume of my testing it can be quite annoying.

So, my question is - is it possible to set a number format in Tosca generally to handle numbers including commas as thousand separators? I mean, to ignore the comma at all so that I could buffer the 1,234.00 as number?

Thank you for your answers.

Best regards

Martin