still not fixed: [ maxima-Bugs-1867942 ] round doesn't evaluate 1.0b0



Hi,

I didn't find the bug 1867942 in the tracker anymore. Sorry to say, but it's not fixed.

I loaded the latest CVS version including the line
		 ((eq lb ub) lb) ;; For floats that are integers, ....

(%i1) load("D:\\volker\\CVS\\maxima\\maxima\\src\\nummod.lisp");
(%o1)             D:\volker\CVS\maxima\maxima\src\nummod.lisp
(%i2) round(12345.b0);
(%o2)                           round(1.2345b4)

Or did I something wrong?

Volker van Nek


Am 10 Jan 2008 um 8:35 hat SourceForge.net geschrieben:

> Bugs item #1867942, was opened at 2008-01-09 15:22
> Message generated for change (Comment added) made by willisbl
> You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1867942
> &group_id=4933
> 
> Please note that this message will contain a full copy of the
> comment thread,
> including the initial issue submission, for this request,
> not just the latest update.
> Category: Lisp Core - Floating point
> Group: None
> >Status: Closed
> >Resolution: Fixed
> Priority: 5
> Private: No
> Submitted By: Volker van Nek (van_nek)
> Assigned to: Barton Willis (willisbl)
> Summary: round doesn't evaluate 1.0b0
> 
> Initial Comment:
> round doesn't when the argument is a bigfloat with an integer number
> value.
> 
> examples:
> 
> map(round, [1.b0, 1.1b1, 1.11b2, 10.b-1, 100.b-2]);
> [round(1.0b0), round(1.1b1), round(1.11b2), round(1.0b0),
> round(1.0b0)]
> 
> Volker van Nek
> 
> --------------------------------------------------------------------
> --
> 
> >Comment By: Barton Willis (willisbl)
> Date: 2008-01-10 10:35
> 
> Message:
> Logged In: YES 
> user_id=895922
> Originator: NO
> 
> Yes, simp-round didn't handle the case where the floor and ceiling
> of the
> number is the same.
> I fixed this and appened regression tests to rtest_round for this
> bug.
> 
> --------------------------------------------------------------------
> --
> 
> Comment By: Raymond Toy (rtoy)
> Date: 2008-01-09 16:10
> 
> Message:
> Logged In: YES 
> user_id=28849
> Originator: NO
> 
> This fails also for floats that are integers.
> 
> I think the problem is in simp-round which doesn't handle the case
> where
> the floor and ceiling of the number are the same.
> 
> --------------------------------------------------------------------
> --
> 
> Comment By: Raymond Toy (rtoy)
> Date: 2008-01-09 15:59
> 
> Message:
> Logged In: YES 
> user_id=28849
> Originator: NO
> 
> This fails also for floats that are integers.
> 
> I think the problem is in simp-round which doesn't handle the case
> where
> the floor and ceiling of the number are the same.
> 
> --------------------------------------------------------------------
> --
> 
> You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1867942
> &group_id=4933