Branch: Tag:

2014-10-20

2014-10-20 17:09:28 by Martin Nilsson <nilsson@opera.com>

Adjustable precision.

368:   //! "32T 442063.562 5247479.500"   //! where the parts are zone number + zone designator,   //! easting and northing. - string UTM() { -  return sprintf("%d%s %f %f", UTM_zone_number(), UTM_zone_designator(), + string UTM(int precision) { +  return sprintf("%d%s %."+precision+"f %."+precision+"f", +  UTM_zone_number(), UTM_zone_designator(),    @UTM_offset());   }