Hello. I'm using the old version of Dark Basic, version 1 which I purchased on CD through the mail (on the black disc with white letters).
I've programmed many short things involving 3d successfully, learning from the example code included. The program works great.
Now for the first time I want to do something where I actually have to
write some math, and seem to have a problem. The program seems to turn every number in to an integer, I'm losing the fractional part of numbers! I need to work with the fractions, because I'm writing a biorhythm program.
For example, the total number of days lived has to be divided by
23 to find the number of physical cycles in a lifetime, and the fractional part after the decimal point is then multiplied to discover how far into the latest rythmic physical cycle the subject is. If the subject has been calculated to have lived 8783 days,
then my calculator shows that divided by 23 the number should be
381.86956 etc etc, a long fraction following. But when I do the math with Dark Basic, and print out the result to see what a simple division (using the /) produces, it seems to only produce the integer, before the decimal point, or 381.
Please don't tell me I need to purchase an upgrade to do simple math. The number of commands in version 1 are already far beyond my needs for simple fooling around. It just seems I'm doing something wrong because I can't seem to get the fraction. How do you use decimal numbers? I need the fractions.
Thanks
Student Programmer