Add two numbers

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
nodochau
Pro Scripter
Posts: 135
Joined: Wed Jan 16, 2019 12:59 pm

Add two numbers

Post by nodochau » Wed Sep 09, 2020 3:19 pm

Hello,
I have two numbers
let>t=1.23
let>tt=0.009
Add>t,tt
I got t=1.24
How can I get t=1.239? That is the number as I expected. tried to format number but not work.
Thanks

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1389
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Add two numbers

Post by Dorian (MJT support) » Wed Sep 09, 2020 3:56 pm

In the Help File it says "Deprecated by Let for numeric calculations"

Therefore :

Code: Select all

let>t=1.23
let>tt=0.009
Let>xx=t+tt
xx = 1.239 as required.
Yes, we have a Custom Scripting Service. Message me or go here

nodochau
Pro Scripter
Posts: 135
Joined: Wed Jan 16, 2019 12:59 pm

Re: Add two numbers

Post by nodochau » Thu Sep 10, 2020 10:02 am

Thank you Dorian. :D

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts