[BangPypers] Need Help : Setting Floating Precision Point as 2 in Python
Roshan Mathews
rmathews at gmail.com
Tue Aug 24 15:17:33 CEST 2010
On Tue, Aug 24, 2010 at 17:52, Arulalan T <arulalant at gmail.com> wrote:
> This gives the what I need.
> But I can not use this Decimal data type.
>
> In CDAT vcs module supports only the 'float data' type to represent the
> latitude & logitude in map.
>
> so I need float value in 2 precision without changing the value. Not in
> string. Not in Decimal.
>
Well, if you can't use Decimal, you won't be able to
use Python, because a float won't work for you:
>>> 80.23
80.230000000000004
Any reason why you can't use Decimal, or a string,
or an integer?
--
http://roshan.mathews.in/
More information about the BangPypers
mailing list