Skip to content

what parent should floor return? #2472

@ncalexan

Description

@ncalexan
mannequin

I think floor and ceil and truncate should return integers.

sage: floor(2).parent()
Integer Ring
sage: floor(2.0).parent()
Integer Ring
sage: floor(RIF(2.0)).parent()
Real Interval Field with 53 bits of precision

CC: @ncalexan

Component: basic arithmetic

Keywords: floor truncate ceil ceiling parent integer

Reviewer: Jeroen Demeyer

Issue created by migration from https://trac.sagemath.org/ticket/2472

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions