+2007-07-22 Ben Pfaff <blp@gnu.org>
+
+ * float-format.c (float_get_double): New function.
+
2007-07-06 Ben Pfaff <blp@gnu.org>
* copyleft.c (legal): Update startup notice to use format
}
}
+/* Converts SRC from format FROM to a native double and returns
+ the double. */
+double
+float_get_double (enum float_format from, const void *src)
+{
+ double dst;
+ float_convert (from, src, FLOAT_NATIVE_DOUBLE, &dst);
+ return dst;
+}
+
/* Returns the number of bytes in a number in the given
FORMAT. */
size_t