Sortable floating point numbers
Abstract
The invention comprises methods for manipulating floating point numbers on a microprocessor where the numbers are sortable. That is, the numbers obey lexicographical ordering. Hence, the numbers may be quickly compared using bit-wise comparison functions such as memcmp( ). Conversion may result in a sortable floating point number in the form of a sign, leading bits of the exponent, and sets of digit triples in the form of declets (sets of 10 bits). In a variable-length version, numbers may be compressed by storing the number of trailing zero declets in lieu of storing the zero declets themselves.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of accessing a database from a first processor, said first processor supporting coding of numbers according to IEEE745R format, said first processor accessing said database through a network, the database being controlled by a second processor that is not in compliance with IEEE745R, the method comprising: receiving, by the second processor, an input number as a query to a field of the database, wherein exponent values and significand values of the input number are represented in BCD form; encoding the input number by: converting, by the second processor, a sign of the input number in
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (3)
- Cowlishaw, "Densely packed decimal encoding", IEE Proc.-Comput. Digit. Tech., vol. 149, No. 3, May 2002, pp. 102-104.
- Draft IEEE Standard for Floating-Point Arithmetic P754/D0.16.4 Mar. 30, 2006.
- Draft Standard for Floating-Point Arithmetic P754, IEEE Standards Activities Department (2006).