How To Display A Number In Max 2 Decimal Points?
Posted 12 April 2008 - 12:11 PM
I am currently programming using the FX-9860G and would like to ask the following questions:
1. How do I ensure that the numeric output (from a program) is displayed in 2 decimal points? i.e. 216.23 instead of 216.23132343 etc?
2. The programming line I am currently using is like: "Answer is":A. If A is of value 123, this will display "Answer is 123". This is fine. But how do I display something like "Answer is 123 Volts"? How do I append a string behind the variable A in the display output?
Posted 12 April 2008 - 12:59 PM
2> I'm a newbie, so the only method I know is to do something like that :
Fix 2 Locate 1,1,"Answer is " Locate 11,1,A Locate (Int log A)+1+11+3,1," Volts"(Int?log?A)+1?returns?the number of ?integer digits, 11 is the beginning of A and 3 is the point and the 2 decimal digits.
Posted 12 April 2008 - 03:06 PM
As for using the Locate command for appending a string after the answer, I am just wondering if there is any other way of doing this?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users