ceylon.math.float and Castable #5

Closed
tombentley opened this Issue Apr 16, 2012 · 2 comments

Comments

Projects
None yet
2 participants
Contributor

tombentley commented Apr 16, 2012

ceylon.math.float has a lot of functions which have Float-valued parameters. It would be nice if we could use these functions with any type which could be safely widened to a Float, so for example I could write sqrt(2) rather than having to write sqrt(2.0).

Contributor

gavinking commented May 5, 2012

I don't think we should do this because it would have a negative impact on performance for actual Floats, which would no longer get erased to Java doubles.

Contributor

tombentley commented Oct 25, 2012

We can close this then

@tombentley tombentley closed this Oct 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment