[mapguide-users] Expression - format float to decimal with 2 decimal places
Ryan Northcott
rnorthcott at gmail.com
Mon Mar 11 05:09:20 PDT 2013
You tried tried Round (x,0)
I have this solution for long integers ill re-write it when I get in my office
- sent via mobile iOS5
On 2013-03-11, at 7:21 AM, Gunter Becker <gunter.becker at csogis.de> wrote:
> Hi,
>
> formatting a number to a decimal with 2 decimal places could be solved by
> using
>
> Round(myPropery,2)
>
> So, 31.456 gives 31.46
>
> But when myProperty is an integer then I would like to have for example
> 30.00. But the expression engine always returns just "30" without the 2
> decimal places. How can I solve this?
>
> This drives my crazy cause I think I've found the solution in the past!
>
> Gunter
>
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Expression-format-float-to-decimal-with-2-decimal-places-tp5039545.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list