Skip to main content
Question

How to to addition with decimal number

  • March 16, 2023
  • 1 reply
  • 224 views

Forum|alt.badge.img
  • Ground Control | Tier 1

 

Can anyone suggest the way to sort out… below

 

I tried Number to string conversion and addition of number

My expectation addition of 0.30+1 = 1.30

but getting output as 0.30+1 as concat the value

 

 

1 reply

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • March 16, 2023

Hi @ap442 ,

 

I would recommend doing the arithmetic operation before converting the variable to String. String variable storing the value in text format where the arithmetic operations will not work.

 

Hence, use the Number → Add action to do the addition and later convert the result into String.