Open kevmal opened 1 month ago
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.Core
round
type Rounder =
static member round v = round v
static member round(upTo: int, v) = round v
open type Rounder
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).
Maybe interesting to get @pblasucci & @baronfel opinions in terms of API.
related: #333
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: