3 Replies Latest reply on Dec 16, 2003 8:19 AM by 843853

    MIDP and floating-point numbers

    843853
      Hiya,

      I need to use floating numbers in a few occasions in a MIDP app that I'm programming at the moment. Whenever I do so though I get a nervous-breaking error at the pre-verification stage of the build. I am working with Wireless Toolkit 2.0 and the rror I get is:
      Building "MyMIDlet"
      Error preverifying class <ClassName>
      
      ERROR: floating-point constants should not appear
      com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
      Build failed
      I get this error whenever I use a floating-point varible or even whenever I compare something to a floating-point value.

      It's got me really puzzled and I can't think of any way around the problem. Any help would be very much appreciated...

      Thanks!