Jump to content

NumConvertBase UDF


therks
 Share

Recommended Posts

I have a problem... I have my code below:

#include <NumBaseConvert.au3>

$num = '44e15d91c5abe7f62add55bd052401'
$new = "" 
For $i = 1 To 15 
    $new = stringLeft($num, 2) & $new
    $num = stringtrimleft($num, 2)
Next

$twentyfour = _NumBaseConvert($new, 16, 24)


MsgBox(0, 'Start: ' & $new,  'Number in 24: ' & $twentyfour & @LF & _
                             'Number in 16: ' & $new)
                             
                            ;$twentyfour should return 
                            ;4adm6li41hbah7h1mh569fhak

the base 24 that i should get back is "4adm6li41hbah7h1mh569fhak", but thats not happening. Is there a way to make your prog work better with long (30 char) strings?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...