Opened 13 years ago
Closed 13 years ago
#198 closed bug (wontfix)
negative denominator is not handled properly
Reported by: | gorzel | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | 3-1-1 |
Component: | dontKnow | Version: | 3-1-0 |
Keywords: | Cc: |
Description
There is a BUG in the Parser: Numbers (fracions) with negative denominator are interpreted as division in Z, i.e. / is inter- preted as div.
> ring r=0,x,dp; > 8/3; // OK 8/3 > -8/3; // OK -8/3 > 8/-3; // BUG -2 > -8/-3; // BUG 2
The same occurs with real
> ring rr=real,x,dp; > 8/3; 2.667e+00 > -8/3; -2.667e+00 > 8/-3; -2 > -8/-3; 2 > 8/-3.0; -2.667e+00 > number(8)/-3; -2.667e+00
and in prime characterstic:
> ring r7=7,x,dp; > 5/3; -3 > 5/-3; // Wrong it is treated as 5/ -3 -1 > number(5)/-3; 3
Note: See
TracTickets for help on using
tickets.