Next Previous Up Contents
Next: Coords
Up: Functions
Previous: Maths
Functions for formatting numeric values.
-
formatDecimal( value, dp )
-
Turns a floating point value into a string with a given number of
decimal places.
-
value
(floating point): value to format
-
dp
(integer): number of decimal places (digits after the decmal point)
- return value (String): formatted string
-
formatDecimal( value, format )
-
Turns a floating point value into a formatted string.
The
format
string is as defined by Java's
java.text.DecimalFormat
class.
-
value
(floating point): value to format
-
format
(String): format specifier
- return value (String): formatted string
Next Previous Up Contents
Next: Coords
Up: Functions
Previous: Maths
STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note
256
STILTS web page:
http://www.starlink.ac.uk/stilts/
Author email:
m.b.taylor@bristol.ac.uk