libtom/libtommath — Issue #3: Feature request: conversion from mp_int to float or double precision
Author: moritz
Created: 2011-10-31 10:55:11+00:00
State: open

It would be nice if I could convert a mp_int into a float or double, preserving the magnitude and some of the first digits, though of course the general case will be lossy. If the mp_int is too large, it could return Inf or -Inf.

We use mp_int for storing big integers in a Perl 6 compiler, and it we'll need to offer such functionality to our uses eventually.