fn :: Int->(Int,Int)

fn n = (hlpDown n x , hlpUp n y)

where {x = floor(sqrt(n)) ;

y = ceiling(sqrt(n))}

Also hlpUp and hlpDown have the following type:

hlpUp :: Int->Int->Int

hlpDown :: Int->Int->Int

Im getting the following error in the second line:

ERROR-Instances of (Floating Int, RealFrac Int) required for definition of fn.

Where is the mistake?

P.S. hlpUp and hlpDown compile without errors