发明名称 SYSTEM AND METHOD FOR CONVERSION OF NUMERIC VALUES BETWEEN DIFFERENT NUMBER BASE FORMATS, FOR USE WITH SOFTWARE APPLICATIONS
摘要 Described herein are systems and methods for conversion of numeric values between different number base formats, for use with software applications. In accordance with an embodiment, an integral part of a passed floating-point numeric value in a source number base (e.g., binary) format is isolated and converted to an integer. A fractional part of the numeric value is also isolated and converted to an integer, while limiting the isolation and conversion of the fractional part to a required precision or number of digits, depending on the particular requirements of a software application. The fractional part can be rounded, including determining an exact roundoff as appropriate, and if necessary propagating the rounding to the integral part. Digits from the resulting integers representing the integral and fractional parts can then be collected and used to prepare a representation of the original numeric value in a target number base (e.g., decimal) format.
申请公布号 US2015095387(A1) 申请公布日期 2015.04.02
申请号 US201414504288 申请日期 2014.10.01
申请人 ORACLE INTERNATIONAL CORPORATION 发明人 LAGNEAU OLIVIER;DARCY JOSEPH
分类号 G06F5/01 主分类号 G06F5/01
代理机构 代理人
主权项 1. A system for conversion of a numeric value stored or received in a source number base format, to a corresponding output representation in a target number base format, comprising: a computer including a processor and a memory; and a logic including a conversion function which enables a passed numeric value in a source number base format to be prepared for output representation, including accessing a stored application setting to determine a required precision or number of digits of an output representation,converting an integral part of the passed numeric value to a first integer,converting a fractional part of the passed numeric value to a second integer while limiting isolation and conversion of the fractional part to the required precision or number of digits, including, performing a rounding process by taking a rounding decision on the second integer representing the fractional part of the passed numeric value, anddetermining whether to propagate the rounding to the first integer representing the integral part of the passed numeric value,wherein the rounding process is not controlled by the stored application setting, andcollecting digits from the resulting first and second integers representing the integral and fractional parts, to prepare an output representation of the passed numeric value in a target number base format.
地址 Redwood City CA US