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




On 2012-01-20 13:32, Noel Power wrote:
[*] table of behaviour in vba, pre the bug being introduced and post patch

                               mso    old behaviour  present
                            --------------------------------
date + num                    Date      Date          Date
date - num                    Date      Double        Date
date * num                    Double    Double        Double
date / num                    Double    Double        Double
date + date                   Date      Double        Double [1]
date - date                   Double    Double        Double
date * date                   Double    Double        Double

[1] the date + date is clearly wrong (fixing that would address '3.' above. )


The MSO behaviour mostly makes sense to me - using plus or minus on a date value returns a date value, using times or divide on a date value returns a double.


Disclaimer: http://www.peralex.com/disclaimer.html



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.