Using the c18 libraries, does anyone have an example of using the math functions in math.h. I'm am getting trash output. I thought it returned IEEE floating point, but it doesn't appear to. Not even the sign bit is correct. Here is a basic example I've tried working with. #include #include void main(void) { float_t x = 3.14; float_t z; z = cos(x); } z's output is as follows... 00110110 11010110 11111011 00010110 ...which is nowhere close to -1. Any suggestions? Thanks, Josh -- View this message in context: http://www.nabble.com/Math-Functions---math.h-t1506453.html#a4085385 Sent from the MicroControllers - PIC forum at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist