Opened 15 years ago

Closed 15 years ago

#499 closed defect (fixed)

n() is undefined for rational numbers

Reported by: mabshoff Owned by: somebody
Priority: major Milestone: sage-2.8.4
Component: basic arithmetic Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Reported by Ted Kosan in sage-support - see http://groups.google.com/group/sage-support/t/2a46ced7d28116eb

x = 1/2
x.n()

Exception (click to the left for traceback):
...
AttributeError: 'sage.rings.rational.Rational' object has no attribute 'n' 

Cheers,

Michael

Change History (1)

comment:1 Changed 15 years ago by was

  • Milestone changed from sage-2.9 to sage-2.8.4
  • Resolution set to fixed
  • Status changed from new to closed

This is done, but it's capital N:

sage: x = 1/2
sage: x.N()
0.500000000000000
Note: See TracTickets for help on using tickets.