> > In C++ you could create you own floating point class with > functions that > > do this. The use would be the same as the normal float and > doubles. No > > new language needed. > > And how do you handle the > precision of any > non-rational numbers Like PI for example ? Or anything that is not > rational in the base you are using for calculations ? In the obvious way. When you in any way create a normal (float) constant you must supply its value. When you create a constant for this datatype, let's call it float-with-uncertainty, you must suplly its middle value and its uncertanty. So you can't just float_with_uncertanty x = (1, 0); x = x * 3.14; because 3.14 is not a float_with_uncertanty. but you could float_with_uncertanty x; x = x * float_with_uncertanty( 3.14, 0.005 ); Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist