cancel
Showing results for 
Search instead for 
Did you mean: 

Example of FormatNum usage

Former Member
0 Kudos
300

Please post example of FormatNum function usage.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Rahul,

If you want any number to be padded with leading zeros then you use this function.

If you are getting the number as 123 and your output has a length of 10 digits then in format number you have to specify 10 zeros 0000000000 so that the output will be like 0000000123.

---Satish

Former Member
0 Kudos

Rahul

we use the function when you want to format number according to particular way.

for example if you want commas after 3 numbers

you just use input -> number format->output

Ex: 1234 ->000,0->123,4

Former Member
0 Kudos

HI,

FormatNum

Converts I according to a pattern that you define using the function properties. The possible patterns are the same as in the

http://help.sap.com/saphelp_nw04s/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm

Examples

input a = 123 then you need 000123.

a -- formatnum(give the format 000000) --b

Also see here to get more examples

http://java.sun.com/j2se/1.3/docs/api/java/text/DecimalFormat.html

Regards

Chilla