What is the best way to represent the fraction in F #? There are solid ways to represent Haskell and Racket ratios. Is there a data type in F # to represent the ratio?
Which you can use BigRernel (arbitrarily exact rational numbers ) Type:
let r = (1n / 2n) * (1n / 3n) // 1/6
Comments
Post a Comment