You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FSharp.Stats.Ops.round shadows the existing round operator upon opening FSharp.Stats. Causes issues particularly with FSI when FSharp.Stats is opened, reevaluated code that relied on the F# round op then fails.
I propose round gets renamed, perhaps to roundTo so:
openFSharp.Statsleta=5.321
round a // F# op -> 5.0
roundTo 1 a //F# stats op -> 5.3
The text was updated successfully, but these errors were encountered:
As a workaround, open FSharp.Core before using round a seems to be ok.
I was thinking of open type, but it occurs that it will still call FSharp.Coreround
typeRounder=static memberround v = round v
static memberround(upTo:int,v)= round v
open typeRounder
round(1,4.44)
error FS0001: Expecting a type supporting the operator 'Round' but given a tuple type
roundTo seems intuitive with the suggested parameter order, maybe we'd want to already come up with open type because there are many ways to round things (up, down, closest to mid point, maybe others).
FSharp.Stats.Ops.round
shadows the existinground
operator upon openingFSharp.Stats
. Causes issues particularly with FSI whenFSharp.Stats
is opened, reevaluated code that relied on the F#round
op then fails.I propose
round
gets renamed, perhaps toroundTo
so:The text was updated successfully, but these errors were encountered: