Jump to content

[BUG-233430] llToHex(number, uppercase)


primerib1
 Share

You are about to reply to a thread that has been inactive for 572 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Another JIRA ticket from me: BUG-233430

 

Quote

New function: llToHex()

Function signature:

    string llToHex(integer number, integer uppercase);

Returns the number but in hexadecimal, without leading "0x".

Parameters:

  • uppercase – if TRUE, return hexadecimal using uppercase letters. If FALSE, use lowercase letters.

 

 

Feel free to pipe up in the linked bug ticket!

  • Thanks 1
Link to comment
Share on other sites

Without going to the link, can you tell me if you are requesting a new function, or are you reporting a bug on an existing new function?

The "BUG-XXX" links are confusing if used for "feature requests" 🙂 

*Edit* I see the "LSL Feature Request" tag in the thread now.

Sorry!

Edited by Love Zhaoying
  • Like 1
Link to comment
Share on other sites

Personally I'd like something that allows for a freely chosen radix between 2 and 36, like the Javascript Number.toString(radix) and parseInt(..., radix). Sure, hex is the one that is most commonly useful, along with binary, but if a conversion function (or a pair of functions) was added natively, unusual bases might allow some interesting optimizations or tricks with less effort.

  • Like 1
Link to comment
Share on other sites

41 minutes ago, Frionil Fang said:

Personally I'd like something that allows for a freely chosen radix between 2 and 36, like the Javascript Number.toString(radix) and parseInt(..., radix). Sure, hex is the one that is most commonly useful, along with binary, but if a conversion function (or a pair of functions) was added natively, unusual bases might allow some interesting optimizations or tricks with less effort.

..for when you're only a little hungry, and a nibble will do..

Link to comment
Share on other sites

6 hours ago, Frionil Fang said:

Personally I'd like something that allows for a freely chosen radix between 2 and 36, like the Javascript Number.toString(radix) and parseInt(..., radix). Sure, hex is the one that is most commonly useful, along with binary, but if a conversion function (or a pair of functions) was added natively, unusual bases might allow some interesting optimizations or tricks with less effort.

Well, you can always comment in the bug to add your suggestion 🙂

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 572 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...