Jump to content

Photo

Long Hex handling for sprintf


  • Please log in to reply
1 reply to this topic

#1 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 25 April 2021 - 10:40 AM

'%lx'/'%lX' for using the long form of a number in a hexadecimal representation.

Adding more, such as octal handling, octal long handling, binary handling, long binary handling, may be worthwhile.

 

(Placing this here as a todo list item)


  • Jared likes this

#2 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 27 April 2021 - 05:12 AM

I added %l to printf and sprintf, but it is untested. I have yet to add %ld. At present, %ld and %l should behave the same. 




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users