Results 1 to 10 of 11

Thread: Formatting numbers & strings

Threaded View

  1. #1
    Member
    Join Date
    Jan 2018
    Location
    France
    Age
    65
    Posts
    40
    Rep Power
    5

    Formatting numbers & strings

    Hi,

    I am lookig for a way to format numbers as financial format ex : 123 456 789.23
    I tryed
    PrintL Format$(123456789.23, "000 000 000.00")
    
    result OK : 123 456 789.23
    but - - - - - - - - 123456 - - - - - - result : 000 123 456.00 - - - - - - - - wished ~~~ 123 456.00 ~ stands here for spaces.

    I also wish to print strings, whose length vary from 1 to 16 bytes in hexadecimal

    as an example "ErosOlmi" would print as 45626F634F6C6D69

    Regards

    Dany
    going to sleep.....
    Last edited by dco045; 26-01-2018 at 01:47. Reason: joke

Similar Threads

  1. prime numbers spiral
    By zak in forum Math: all about
    Replies: 4
    Last Post: 08-06-2010, 09:02
  2. Line numbers and GOTO
    By Charles Pegge in forum O2h Compiler
    Replies: 19
    Last Post: 19-04-2009, 10:44
  3. UDT.and.numbers
    By Michael Clease in forum thinBasic General
    Replies: 2
    Last Post: 07-03-2009, 00:56
  4. Source code formatting
    By ErosOlmi in forum thinAir Tips and Tricks
    Replies: 3
    Last Post: 25-09-2006, 11:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •