https://bugs.freedesktop.org/show_bug.cgi?id=75332

          Priority: medium
            Bug ID: 75332
          Assignee: [email protected]
           Summary: if variable sum=1 , the expression result "if sum = 1
                    then" is sometimes true and sometimes it is false
          Severity: normal
    Classification: Unclassified
                OS: Windows (All)
          Reporter: [email protected]
          Hardware: x86-64 (AMD64)
            Status: UNCONFIRMED
           Version: unspecified
         Component: BASIC
           Product: LibreOffice

Created attachment 94527
  --> https://bugs.freedesktop.org/attachment.cgi?id=94527&action=edit
spreadsheet with macros vestocastic() and  vestocastic2()

tested from libreoffice 3.6 in windows x32/64 and ubuntu x32/64

Function vEstocastic (vector()) as boolean
dim i, m as integer
dim suma as variant
    suma = 0
    m = ubound(vector, 2)
    for i = 1 to m
        suma = suma + vector(1, i)
    next
    if suma = 1 then               'if the variable suma = 1
        vEstocastic = true     'somtimes is true
    else                           'and
        vEstocastic = false    'sometimes is false
    end if
End Function

and.....


Function eNumeric (elemento) as boolean
    if isnumeric(elemento) then      'if elemento = .0.3
        eNumeric = true          'the result is incorrectly true
    else
        eNumeric = false         '
    end if
End Function

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to