Skip to content

Unfriendly error message from bfsqrt #36

Description

@soegaard

If by accident bfsqrt is given a non-bigfloat the error message doesn't come from the Racket layer.

Welcome to Racket v7.6.
> (require math/bigfloat)
> (bfsqrt 2)
; mpfr->C: argument is not non-null `mpfr' pointer
;   argument: 2
; [,bt for context]
> (bfsqrt (bf 2))
(bf #e1.414213562373095048801688724209698078569)

Activity

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