We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7888c42 commit 51e21e7Copy full SHA for 51e21e7
src/sage/rings/number_field/number_field.py
@@ -3932,6 +3932,8 @@ def primes_of_bounded_norm(self, B):
3932
Fractional ideal (3)]
3933
sage: K.primes_of_bounded_norm(1)
3934
[]
3935
+ sage: K.primes_of_bounded_norm(1.1)
3936
+ []
3937
sage: x = polygen(QQ, 'x')
3938
sage: K.<a> = NumberField(x^3 - 2)
3939
sage: P = K.primes_of_bounded_norm(30)
@@ -3951,7 +3953,7 @@ def primes_of_bounded_norm(self, B):
3951
3953
B = ZZ(B)
3952
3954
except (TypeError, AttributeError):
3955
try:
- B = ZZ(B.ceil())
3956
+ B = ZZ(B.floor())
3957
3958
raise TypeError("%s is not valid bound on prime ideals" % B)
3959
if B < 2:
0 commit comments