Announcement

Collapse
No announcement yet.

Divison is not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • sigi
    replied


    Hello

    the 4DGL Language is really nice, but only signed int's are a big big problem.
    It will be more helpfull to have unsigned longs !!!
    It is possible to do everything in 4DGL, but ... the small memory space .....is the limitation.
    So my question is : what about unsigned long's any plannings ?
    Have a nice day
    Withe best regards
    siegmar

    Leave a comment:


  • meldavia
    replied


    Hi Danial, its all a matter of space - we just cant fit float operations into the current range of devices, however, there are new displays in the pipeline that will have more memory etc, and float to be released later this year.

    Leave a comment:


  • Dschaefer
    replied


    Thanks for your reply.
    Yes at the moment I'm using the same way you mentioned. But it is
    really sad that 4D System can't or hasn't implemented a float (yet?).

    Thanks again!

    Daniel

    Leave a comment:


  • 4DSysFan
    replied


    Hi Dschafer,

    As per the manual, the currently supported variable type is a signed 16 bit integer.

    There are ways around this.... For example,

    temp := (5 * 10)/2
    if (temp == 25)
    doSomething();

    This assumes the number * 10 does not overflow 15 bits....

    Leave a comment:


  • Dschaefer
    started a topic Divison is not working

    Divison is not working

    Hello,
    I can't get a working floating point division.
    Samplecode:
    temp := 5.0/2;
    if(temp == 2.5)
    doSomething();
    endif
    print(temp); //also wrong value

    Please fix this. There is no real way to calculate something

    Regards
    Daniel
Working...
X