User Profile
Collapse
-
Thanks Sashi! helped me out there... :-)... -
how to change text when user entered a switch option?
here's a question regarding changing units, say from g to kg without changing the entire codes....
my mathematical equation uses KG (kilograms), but the user can choose whether to enter values in G or KG. if the user entered the option in G, how can i convert from the string "KG" to "G" for every of the term in console.writeli ne that i do without repeating each time?
in example
console.writeli ne("enter... -
hmm...cant seem to work it out from there. am thinking about using the math.round option but dont know how to write the code....Leave a comment:
-
how to produce output restricted to just 2 decimal places?
anybody knows how to produce output restricted to just 2 decimal places?
thanks :-)
No activity results to display
Show More
Leave a comment: