floating point - Type-preserving rounding in Haskell -


is there built-in function in haskell rounds real floating-point number nearest whole number, without changing type of said number?

sametyperound f == fromintegral (round f) 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -