Invention Grant
US07685213B2 Conversion of floating-point numbers from binary into string format
有权
将浮点数从二进制转换为字符串格式
- Patent Title: Conversion of floating-point numbers from binary into string format
- Patent Title (中): 将浮点数从二进制转换为字符串格式
-
Application No.: US11103996Application Date: 2005-04-12
-
Publication No.: US07685213B2Publication Date: 2010-03-23
- Inventor: Nathan Luther Reynolds
- Applicant: Nathan Luther Reynolds
- Applicant Address: US CA San Mateo
- Assignee: Siebel Systems, Inc.
- Current Assignee: Siebel Systems, Inc.
- Current Assignee Address: US CA San Mateo
- Agency: Campbell Stephenson LLP
- Main IPC: G06F5/00
- IPC: G06F5/00

Abstract:
A method, system, and computer program product that convert a real number from a floating point representation to a character string. Mantissa bits are extracted from the floating-point representation of a value into an integer format. The mantissa bits of the integer format may be shifted left by a number of positions that is equal to a base 2 exponent of a first representation of the value. Prior to converting the value, the floating-point representation of the value can be divided by 2n, where n is the number of the mantissa bits in the floating-point representation of the value. A set of operations can then be performed to convert a result of the division to a number greater than or equal to 1.0 and less than 10.0. The set of operations may include multiplication operations and/or retrieving a constant from a lookup table.
Public/Granted literature
- US20070203965A1 Conversion of floating-point numbers from binary into string format Public/Granted day:2007-08-30
Information query