July 13, 2024, 08:12:21 PM


IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!

Uint64 operations

Started by Andy, August 20, 2017, 05:28:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


August 20, 2017, 05:28:44 AM Last Edit: August 20, 2017, 10:06:33 PM by Andy
After a long long time, and with a lot of help I've amended some of Fasecero's C library import code for Uint64's - and added some useful functions from my Stringmap library.

This include file gives us a good working start point for Uint64 variables.

If you study the include file you will be able to see the commands and what they do, pretty straight forward really.

It also addresses how we can get a user to enter a uint64 number - without the q added to it.

You can do the following:
Turn a string into a uint64 - and reverse
Add two uint64's together
Subtract two uint64's
Convert uint64 to hex - and reverse
Convert uint64 to a base number
Find the Mid$ of a number
Plus the usual operators, <, <=, >, >=, <>, =.

A good starting point I think.

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.