Task

Express a number in decimal as a fixed-length string with leading zeros.



For example, the number   7.125   could be expressed as   00007.125.




D5=7125                                                                                                                                                      
A10=D5,'-ZZZZX.XXX'          ;     7.125                                                                                                                     
A10=D5,'-ZZZZX.XXX'  [LEFT]  ;7.125                                                                                                                          
A10=D5,'-XXXXX.XXX'          ; 00007.125                                                                                                                     
A10=-D5,'-ZZZZX.XXX'         ;-    7.125                                                                                                                     
A10=-D5,'-ZZZZX.XXX' [LEFT]  ;-    7.125                                                                                                                     
A10=-D5,'-XXXXX.XXX' [LEFT]  ;-00007.125                                                                                                                     
A10=-D5,'XXXXX.XXX-'         ;00007.125-                                                                                                                     
A10=-D5,'ZZZZX.XXX-'         ;    7.125-                                                                                                                     
A10=-D5,'ZZZZX.XXX-' [LEFT]  ;7.125-  
 
A10=1500055,'ZZZ,ZZX.XX      ; 15,000.55