Use decimal number increment for the code DO LOOP
Posted: Fri Nov 08, 2024 12:17 pm
I need to use Do loop with increment 0.1
Let's say that the variable X is defined between 1 and 11 with increment 0.1.
DO X = 1,11,0.1
....
END DO X
When I run this code, RATS gives error on "usage of real integer number" as an increment.
How can I use a decimal number as an increment in DO LOOP?
Thank you for your helps.
Let's say that the variable X is defined between 1 and 11 with increment 0.1.
DO X = 1,11,0.1
....
END DO X
When I run this code, RATS gives error on "usage of real integer number" as an increment.
How can I use a decimal number as an increment in DO LOOP?
Thank you for your helps.