Hi,
I'm new to Blitzmax (... Blitz-anything actually).
Currently i'm in the building a 2D side scrolling adventure fase (read: beginner) and somehow i ended up making an application for work. But making this application will give me more time at work.... to read the Blitz forum :)
I'm using MaxGui to show 2 inputboxes.
In inputbox 1 a user types a 13 digit number
In inputbox 2 (outputbox) i show the number converted to a 12 digit number.
Why? Well at my work we have a unique identifier for persons but we are not allowed to communicate that number to the outside world. We send information with a 'encryption', a math conversion to a different number (13 digits) to keep the person unique but to make identifying the person very difficult.
In some cases we get the encrypted number back and we need to decrypt it. But because the math conversion needs to be kept on a 'need to know' basis i have to decrypt the number for others.
To save myself and my colleges from this menial work i'm making a conversion tool. It's easy, i made it for myself in Excel but i can't give that to others because they can see the formula.
I ran into 2 problems:
1. After reading a lot on the forum i used different rounding functions but none work with 13 digit numbers.
2. After conversion the number is displayed like this: 5.08356485e+010. But it should be like this: 123456789012
Does anyone have an idea how to fix this?
I'm new to Blitzmax (... Blitz-anything actually).
Currently i'm in the building a 2D side scrolling adventure fase (read: beginner) and somehow i ended up making an application for work. But making this application will give me more time at work.... to read the Blitz forum :)
I'm using MaxGui to show 2 inputboxes.
In inputbox 1 a user types a 13 digit number
In inputbox 2 (outputbox) i show the number converted to a 12 digit number.
Why? Well at my work we have a unique identifier for persons but we are not allowed to communicate that number to the outside world. We send information with a 'encryption', a math conversion to a different number (13 digits) to keep the person unique but to make identifying the person very difficult.
In some cases we get the encrypted number back and we need to decrypt it. But because the math conversion needs to be kept on a 'need to know' basis i have to decrypt the number for others.
To save myself and my colleges from this menial work i'm making a conversion tool. It's easy, i made it for myself in Excel but i can't give that to others because they can see the formula.
I ran into 2 problems:
1. After reading a lot on the forum i used different rounding functions but none work with 13 digit numbers.
2. After conversion the number is displayed like this: 5.08356485e+010. But it should be like this: 123456789012
Does anyone have an idea how to fix this?