[Libreoffice] [PATCH] Frac function in calc/BASIC
Andor E
eymux2009 at googlemail.com
Fri Oct 21 00:18:51 PDT 2011
Interestingly enough there seem to be two definitions for the frac
function. Your implementation is the one seemingly used by all
programming languages, which implement it. But the correct
mathematical definition seems to be y = x - floor(x)
(http://mathworld.wolfram.com/FractionalPart.html), which gives
different values for positive and negative numbers.
Other than that I believe the patch is fine.
Greetings
eymux
On Fri, Oct 21, 2011 at 5:19 AM, August Sodora <augsod at gmail.com> wrote:
> I came across this feature request today and decided to try my hand at
> it. Is the attached patch an appropriate solution?
>
> August Sodora
> augsod at gmail.com
> (201) 280-8138
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
>
More information about the LibreOffice
mailing list