[mapguide-users] Expression - format float to decimal with 2 decimal places

Gunter Becker gunter.becker at csogis.de
Mon Mar 11 04:21:26 PDT 2013


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.


More information about the mapguide-users mailing list