Next in thread → Next in month →

Re: [office-comment] BASE(): support two's complement negative binary numbers

From
<>
Date
2010-11-26T14:23:53+00:00
ID
Thread
Re: [office-comment] BASE(): support two's complement negative binary numbers
Two's complement requires knowing the integer memory size.  For example, the 8 bit two's complement number equivalent to -1 is 0xFF, but if that is a 16 bit number, then that is 255. 

How does BASE know the integer size for determining what the two's complement is? 

The machine size would give different results if a the spreadsheet is on a 32 bit machine or a 64 bit machine.  


--- On Fri, 11/26/10,  <> wrote:

> From:  <>
> Subject: [office-comment] BASE(): support two's complement negative binary numbers
> To: 
> Date: Friday, November 26, 2010, 7:02 AM
> hi,
> I saw here:
> http://docs.oasis-open.org/office/v1.2/cd05/OpenDocument-v1.2-cd05-part2.
> html#a_6_19_3_BASE
> that BASE() require 'Integer X' >=0.
> 
> This forbid conversion of negative numbers to binary. The
> problem is ever 
> whorse when the number is lesser than -512,
> as DEC2BIN and HEX2BIN require two's complement with a max
> of 10 digit.
> 
> So please add support for two's complement negative binary
> numbers as output 
> of BASE().
> 
> thank you in advance,
> Valerio
> 
> 
> -- 
> This publicly archived list offers a means to provide input
> to the
> OASIS Open Document Format for Office Applications
> (OpenDocument) TC.
> 
> In order to verify user consent to the Feedback License
> terms and
> to minimize spam in the list archive, subscription is
> required
> before posting.
> 
> Subscribe: 
> Unsubscribe: 
> List help: 
> List archive: http://lists.oasis-open.org/archives/office-comment/
> Feedback License: http://www.oasis-open.org/who/ipr/feedback_license.pdf
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> Committee: http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office
> 
>
Next in thread → Next in month →