Is there any package or method that replicates Delphi's formatfloat method?
Examples of the intended output when given 1234.567:
##### : 1235
00000 : 01235
0 : 1235
#,##0 : 1,235
,0 : 1,235
0.#### : 1234.567
0.0000 : 1234.5670
Edit:
The formatting masks would still need to be in the same format as Delphi (preferably, can be parsed and treated if need be), as they are present in an external file and it needs to be compatible with both.