About numeric precision

From: Cheung <zuibeidemei_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 03 2012 - 12:24:33 MDT

 Hi:
           I find that if
             a = new(1,double)
             a = 19800103
             print(a)
             a will be 19800103
           however,
             a = new(1,double)
             a = 19800103. (plus a point)
             print(a)
             a will be 19800104
 
         I wonder why?

 

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Aug 3 12:24:44 2012

This archive was generated by hypermail 2.1.8 : Fri Aug 03 2012 - 14:39:58 MDT