Maptitude GISDK Help

Format()

Summary

Formats a number.

 

Syntax

formatted_number = Format(real x, string format)

 

Argument

Contents

x

The number that is formatted

format

The format in which the number is represented

 

Returns

A string containing a formatted version of x.

 

Notes

Example

s1 = Format(1234.567, "$0,000.00")

// s1 is "$1,234.57"

s2 = Format(1234.567,"*.00000")

// s2 is "1234.56700"

s3 = Format(1234567.89, ",*0.00")

// s3 is "1,234,567.89"

s4 = Format(.02, ",*0.00")

// s4 is "0.02"

s5 = Format(3, "000")

// s5 is "003"

s6 = Format(12345, "000")

// s6 is "###"

s7 = Format(1234.567, "i0,000.00")

// s7 is "1.234,57"

s8 = Format(1234.567, "Sigma = <*.00E000")

// s8 is "Sigma = 1.23E+003"

s9 = Format(1234.567, "i,*0.00> NKR")

// s9 is "1.234,57 NKR"

 

See Also

Function

Summary

IntToString()

Converts an integer to a string

RealToString()

Converts a real number to a string

String()

Converts a real number to a string

 

 

©2025 Caliper Corporation www.caliper.com