[Gambas-user] Format padding with spaces?

Benoit Minisini gambas at ...1...
Tue Nov 11 15:42:19 CET 2008


On mercredi 17 septembre 2008, Ron wrote:
> Hi,
>
> I was a bit suprised to find out that Format$ doesn't support space
> padding like it does with zero's
>
> So:
> PRINT Format$(72.06, "  .##")
> PRINT Format$(2.05, "   .##")
> Prints:
>  72.06
>    2.05
>
> Any technical reason for this?
>
> Regards,
> Ron_2nd
>

This is done in revision #1696:

PRINT Format(123.45, "#####.##")
  123.45

Regards,

-- 
Benoit Minisini




More information about the User mailing list