median

get median from given collection of numbers


Parameters

median collection :block

Returns

  • :null
  • :integer
  • :floating

Examples

copy
print median [2 4 5 6 7 2 3] ; 6 print median [1 5 2 3 4 7 9 8] ; 3.5

Related