User talk:Dedalus: Difference between revisions

From Rosetta Code
Content added Content deleted
(thnx Pete)
Line 11: Line 11:
median = (tbl(m - 1) + tbl(m)) / 2
median = (tbl(m - 1) + tbl(m)) / 2
End If
End If
Dear mister Lomax, you are perfectly right. [[User:Dedalus|Dedalus]] ([[User talk:Dedalus|talk]]) 18:14, 11 February 2019 (UTC)

Revision as of 18:15, 11 February 2019

else rqd

In Fivenum#VBA you wrote ({{trans|Phix}})

   If l Mod 2 = 1 Then
       median = tbl(m)
   End If
   median = (tbl(m - 1) + tbl(m)) / 2

to match the Phix output I think that should be

   If l Mod 2 = 1 Then
       median = tbl(m)
   Else
       median = (tbl(m - 1) + tbl(m)) / 2
   End If

Dear mister Lomax, you are perfectly right. Dedalus (talk) 18:14, 11 February 2019 (UTC)