Issues with ascii convert with bases <= 1
Bug #723582 reported by
marcog
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ibid |
New
|
Low
|
Unassigned |
Bug Description
10:43 <marcog> ascii 42 to base 1
10:43 <Maaz> That didn't go down very well. Burp.
10:43 <marcog> ascii 42 to base 0
10:43 <Maaz> That didn't seem to agree with me
10:43 <marcog> ascii 42 to base -1
10:43 <Maaz> That is 52 50 32 116 111 32 98 97 115 101 32 45 49 in decimal
10:43 <marcog> ascii 42 to base -2
10:43 <Maaz> That is 52 50 32 116 111 32 98 97 115 101 32 45 50 in decimal
It is obviously choking on base 0 and 1. I am not sure if the result for base -1 or -2 makes any sense at all, but it definitely should not say "in decimal".
To post a comment you must log in.
In case somebody wonders what is happening for the negative cases: the entire string "42 to base -2" is being converted, so it *is* in decimal.