0
How do we write up and store precision figures in a no. that contains trailing zeroes after decimal ? Example how to store 9.10
While using scientific measuring devices like vernier callipers and screw gauges, it is essential to keep precision figures in mind. For example,in cms (A) 9.1, (B) 9.10 & (C) 9.100 are not the same in science. Although the value is same, A signifies a ruler measurement (metre scale), B signifies a vernier callipers measurement, and C is a screw gauge (micrometer ) measurement. So how do we note down these values separately on variables? x=9.10 would be stored as x=9.1 in python (trailing zeroes after decimal are ignored in Python ) P. S. - I know that this can be achieved by using strings instead of floating point values. But is there an alternative method to store by importing some NumPy or other modules?
0 ответов