Skip to content

It is possible to create Rationals with 0 denominator #20349

@KristofferC

Description

@KristofferC
julia> 1//0
1//0

julia> div(1,0)
ERROR: DivideError: integer division error
Stacktrace:
 [1] div(::Int64, ::Int64) at ./int.jl:144

Should 1//0 also error out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    error handlingHandling of exceptions by Julia or the usermathsMathematical functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions