Opened 5 years ago

Closed 5 years ago

#844 closed bug (fixed)

The cast bigint( ) assigns numbers to bigints

Reported by: gorzel Owned by: somebody
Priority: minor Milestone: 4-2-0 and higher
Component: singular-kernel Version: 4-1-1
Keywords: Cc:

Description

With the cast bigint( ) on can assign rational numbers to bigints. A bug or just a feature?

> system("version");
4112
> ring r=0,x,dp;
> int n;
> bigint N;
> n = int(7/3); n;
2
> N = bigint(7/3); N;   <-- Bug here
7/3
> typeof(N);
bigint
> N = int(7/3); N;  // OK 
2
> N = 7/3;          // OK
   ? `bigint`(N) = `number` is not supported
   ? expected `bigint` = `bigint`
   ? error occurred in or before STDIN line 8: `N = 7/3;`
> 

Change History (1)

comment:1 Changed 5 years ago by hannes

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.