Skip to content

real2int function? #116

Open
Open

Description

@mkhattab940

The real2int function (which is specified here: http://hakaru-dev.github.io/lang/coercions/) does not seem to be implemented

Name not in scope: real2int

30| 	return real2int(num/(den1*den2))
                   ^^^^^^^^
Perhaps it is a typo?

Activity

  1. zaxtax commented on Nov 21, 2017

    @zaxtax
    Member
  2. mkhattab940 commented on Nov 22, 2017

    @mkhattab940
    ContributorAuthor

    Thanks zaxtax. I was able to get it working. However, there seems to be rounding errors. How can I ensure I round to nearest integer?

  3. zaxtax commented on Nov 22, 2017

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions