Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi MarcinGutman,

On Saturday, 2011-10-22 00:42:32 +0200, MarcinGutman wrote:

Calc add-ins do not support functions that take or
return UNO type hyper.
.. however, it should work if the .idl file instead
uses unsigned hyper ...

You omitted some words that slightly change the meaning of the quoted
sentence ;-)

| Why, however, it should work if the .idl file instead uses unsigned
| hyper I do not know.

So actually that means that there is no reason that it should work with
'unsigned hyper', because in this context hyper should not work at all.

You have
to choose "double" or "Object". On the other hand "unsigned hyper" works
fine. So, why there is "int" in Wizard... use double instead.

If you write a code and you want "long" you use "long" not "double" with
Math.round().

Am I the first one who wants "clean long" in Calc add-in?  

Problem is that a hyper reflects a 64-bit value. Calc internally uses
IEEE754 double and you can't map 64 bit into a double without
sacrificing precision.

Btw, please let your mail program not break threads, use Reply-All when
replying. Thanks.

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Attachment: pgpBsLvCB3bmK.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.