[ncl-talk] toint function

Sheng-Hung Wang wang.446 at osu.edu
Thu Mar 1 08:29:03 MST 2018


Hi

How does function toint work?

Here is my problem

print(toint(2003201.932))

print(toint(2003201.942))

Accoring to NCL web page, toint should truncate any fractional part of 
vales, but I got 2003201 for 1st one, and 2003202 for 2nd one.

I know I can replace toint to floor in this case. I just like to know 
what's really going on for the future.

Thanks

Sheng-Hung

-- 
========================================
  Sheng-Hung Wang, PhD
  Polar Meteorology Group
  Byrd Polar and Climate Research Center
  The Ohio State University
  1090 Carmack Road, Columbus, Ohio 43210
  Phone: (614) 292-1060
  Fax:   (614) 292-4697
  email: wang.446 at osu.edu
========================================



More information about the ncl-talk mailing list