Re: FLoating value from native
Thomas Chenot <tom.chenot-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
sharmila inamdar wrote: >I am using DS80c390. I want to know whether we can get direct floating point >value form native layer ? How should it be returned in native and which >format? > There is no support for floating point in the native API. The basics (+,-,*,/, SQRT) are handled via the JVM. The rest is handled at the library level. The format is described in IEEE Std 754-1985. Single precision values are 32 bits and are therefore passed in and returned just as "int" values are passed and returned. Double precision values are 64 bits and therefore are handled in the same manner as "long" values. > >The native example given with the TSDK talks about long and int return >values. How do I handle float values ? Or I have to return a byte array and >then process it on the JVM layer? > > >..sharmila > > > -- Thomas Chenot _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini