Convert Decimal value in number with different box

I have 2 text boxes. One is named TB4, which shows the value in Maunds (1 Maund = 40 Kg). The second one is TB5, which shows the value in Kilograms.

After calculation, the result is usually a simple decimal value like 201 Maund, 205 Maund, or 2 Maund. But when the value is like 201.521 Maund or 205.231 Maund, I want:

  • The part before the decimal to be shown in TB4, and
  • The fractional part after the decimal (converted to kilograms by multiplying with 40) to be shown in TB5.

Please explain how to do this

Could you please share the blocks you’re currently using for the conversion? Lets people see how you’re doing it

Use the split block and split at . (the decimsl point) to get a list with 2 items
Display the first item in TB4 and the 2nd in TB5

Taifun

Best answer for you!

1 Like