Doing Maths in Hex

-hh hh at hh.on-rev.com
Tue May 3 14:53:55 EDT 2016


Bonjour Thierry,

Perfect.
But now, of course, the question arises, how to do that in base 42 ;-)

Hermann

Thierry Douez wrote
> .. and before the next question will arise:
>> 
> put addHexy( "20F", "4CD", "10", "3AB")
> 
> function addHexy
>    local T
>    repeat with i = 1 to paramCount()
>       add baseConvert(  param( i) ,16,10) to T
>    end repeat
>    return baseconvert( T, 10, 16)
> end addHexy
> 
> ​Thierry
>




--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Doing-Maths-in-Hex-tp4704028p4704169.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list