Maturity Index: Immature
Support for floating-point arithmetic is minimal in the Computer Algebra Kit; it is possible to convert results that are obtained by exact arithmetic to a numerical approximation (see the method asNumerical of Integer, Matrix, Polynomial etc.) for further processing by numerical analysis software.
+newCreates an floating-point object equal to zero.
+floatValue:(float)floatValueCreates an object with value equal to floatValue.
+str:(STR)aStringReturns a new float object given a string aString, or returns nil if the method can't parse aString. This method acts like the ANSI function atof().
- (float)floatValueReturns the value of the object.
-floatValue:(float)fCreates an object with value f.
-zeroReturns a new reference to a shared float instance with value equal to zero.
-oneReturns a new reference to a shared float instance with value equal to one.
-minusOneReturns a new reference to the float minus one.
- (BOOL)printsLeadingSignReturns YES if the number is negative.
-printOn:(IOD)aFilePrints the floating-point number to aFile according to the '%g' format of the ANSI function printf().