Loading ...
Sorry, an error occurred while loading the content.
 

Re: [Clip] padding numbers

Expand Messages
  • Don Passenger
    Missing something simple here: ^!Set ^%seconds_per_mile_target%=6.9 ^!Info ^%seconds_per_mile_target% ^!Info ^$StrSize( ^%seconds_per_mile_target% )$ ^!If
    Message 1 of 4 , Oct 3 8:58 PM
      Missing something simple here:

      ^!Set ^%seconds_per_mile_target%=6.9
      ^!Info ^%seconds_per_mile_target%
      ^!Info ^$StrSize("^%seconds_per_mile_target%")$
      ^!If ^$StrSize("^%seconds_per_mile_target%")$=3 ^!Set
      ^%seconds_per_mile_target%=0^%seconds_per_mile_target%
      ^!Info ^%seconds_per_mile_target%


      Is not working as I expect. I would think it would make 6.9 become 06.9
    • Hugo Paulissen
      ... [snip] ... 06.9 Don, Remove the ^ before the name of the variable when you set it. ^!Set ^%var% does not work, it should be ^!Set %var% Hugo
      Message 2 of 4 , Oct 4 12:28 AM
        > Missing something simple here:
        >
        [snip]
        >
        > Is not working as I expect. I would think it would make 6.9 become
        06.9

        Don,

        Remove the ^ before the name of the variable when you set it.

        ^!Set ^%var% does not work, it should be
        ^!Set %var%

        Hugo
      Your message has been successfully submitted and would be delivered to recipients shortly.