tracker issue : CF-3712098

select a category, or use search below
(searches all categories and all time range)
Title:

InputBaseN returns incorrect result

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): A. Bakia / A. Bakia (A. Bakia)

Created: 02/22/2014

Components: Language

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final / CF2016 298074

Priority/Frequency: Major / All users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Problem Description: The function inputBaseN returns an incorrect result.

Steps to Reproduce: Run the following code in a CFM page:
<cfoutput>#inputBaseN("1CF2F8E6E559E00",16)#</cfoutput>

Actual Result: 1851104768

Expected Result: 1.30375203E+017, in other words, 1.30375203 * 10^17  

Any Workarounds: Manual evaluation, as follows:
14*16^2 + 9*16^3 + 5*16^4 + 5*16^5 + 14*16^6 + 6*16^7 + 14*16^8 + 8*16^9 + 15*16^10 + 2*16^11 + 15*16^12 + 12*16^13 + 1*16^14

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3712098

External Customer Info:
External Company:  
External Customer Name: BKBK
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Expected Result: 1.CF-30375203E+017, in other words, 1.CF-30375203 * 10^17 or else an error saying, for example, that the result is out of the integer range
Comment by External U.
13356 | February 22, 2014 08:11:22 AM GMT
Although this bug is fixed, there seems to be a backward-compatibility issue. As a result, this fix will be part of next release.
Comment by S P.
13357 | November 10, 2014 04:29:47 AM GMT
Hi Preethi, The "Closed/Fixed" status is misleading. This issue still exists in CF11 Update 5 (build 11,0,05,293506). Could the status be changed to Open/ToTest or something? Or at least populate "Fixed In Build" with the build that this will be fixed in? Thanks!, -Aaron
Comment by External U.
13358 | November 24, 2015 12:30:05 AM GMT