Algorithm for succinct encoding of IEEE-754 floating points