https://kotlinlang.org logo
Title
u

user

07/12/2022, 9:31 PM
Understanding Haskell realToFrac function I meed to migrate some Haskell code to Kotlin and I have some confusion trying yo understand the next code: floor ((realToFrac minutes :: Double) / 60) minutes is a integer value, my Kotlin code, looks like this: floor((minutes / 60).toDouble()) But I am not getting the expected results. I think I am missing the realToFrac part. I do not have Haskell experience. If it possible could you give me some idea of this line of code in another language such Java or JavaScript.