2. Floating Math
Home ] 1. The CASLide ] 2. First Application ] [ 2. Floating Math ] 3. Dates and Times ] 4. Strings ] 5. Previous Program State ] 6. Data Browser ] 7. Data Entry ] 8. Conduit and Desktop Companion ] 9. Games ] 10. Graphics ] 11. Sound ] 12. Communications ] 13. Accessing Palm Databases ] 14. Distributing CASL Applications ] A. Programming Style ] B. Objects ] C. Positioning Objects ] D. POSE ] E. C Code ]

 

Look at cslMath, MathLib, use with normal CASL and CASLpro.  How to elegantly detect presense.

If you're using the floating math functions in CASL these are only supported by MathLib.

With normal CASL it's only a matter of having the MathLib.PRC file on your palm, and the CASLrt handles the calls.

With CASLpro, you need to include a cpk file which wraps around the C funcions for mathlib install and uninstall. Also there's a c file for wrapping around all the mathlib function names, so you can easily call them with casl names. The mathlib.c file has a #include for an header h file. Not much code but you want to load into your project similar to how it's been done for the sample app O'Clock. The install and uninstall functions must be called in the startup and shutdown functions of your CASL program. After all this (and it's really not that bad), the MathLib.prc file still needs to be on your Palm. You CASL program is making calls to it.

In either case, if you'd like an alternative to MathLib, Jeff has written many of the floating math functions in CASL code as a cpk package file. In my experience they're pretty fast, but I guess if you're doing a lot of math, Mathlib would of course be faster.

 

 

[ Top ]

© 2001, Feras Information Technology. All rights reserved.