Feb 5, 2004 #1 ganjass Technical User Joined Dec 30, 2003 Messages 154 Location GB CR 8 Hi I need to format numbers so that they are right justified with leading zero's to the length of 11 digits with no decimal place. eg. 30.50 would be 00000003050 100.60 00000010060 Cheers
CR 8 Hi I need to format numbers so that they are right justified with leading zero's to the length of 11 digits with no decimal place. eg. 30.50 would be 00000003050 100.60 00000010060 Cheers
Feb 5, 2004 #2 nagornyi MIS Joined Nov 19, 2003 Messages 882 Location US ToText({NumberField},'0000000000'} Upvote 0 Downvote
Feb 5, 2004 1 #3 vidru Programmer Joined Jul 18, 2003 Messages 2,113 Location US Try this: replicatestring("0", 11 - len(replace(totext({table.field),".","")) + replace(totext({table.field}),".","" -dave Upvote 0 Downvote
Try this: replicatestring("0", 11 - len(replace(totext({table.field),".","")) + replace(totext({table.field}),".","" -dave
Feb 5, 2004 Thread starter #4 ganjass Technical User Joined Dec 30, 2003 Messages 154 Location GB nargoyni cheers mate close but no cigar it does right justify the number but it forgets the number after the decimal, vidru sweet as a nut it worked perfectly Upvote 0 Downvote
nargoyni cheers mate close but no cigar it does right justify the number but it forgets the number after the decimal, vidru sweet as a nut it worked perfectly
Feb 5, 2004 1 #5 lbass Technical User Joined Feb 9, 2002 Messages 32,818 Location US Nagornyi's approach would work with the following modification: totext({table.number} * 100, "00000000000" -LB Upvote 0 Downvote
Nagornyi's approach would work with the following modification: totext({table.number} * 100, "00000000000" -LB
Feb 5, 2004 Thread starter #6 ganjass Technical User Joined Dec 30, 2003 Messages 154 Location GB thanks all Good effort! Upvote 0 Downvote