You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let hundred = 100
if let bint = BInt("11173433833219812840") {
if hundred < bint {
print("bint(\(bint)) is bigger than a hundred")
} else {
print("bint(\(bint)) is lower than a hundred or equals")
}
if 100 < bint {
print("bint(\(bint)) is bigger than 100")
} else {
print("bint(\(bint)) is lower than 100 or equals")
}
}
bint(11173433833219812840) is lower than a hundred or equals
bint(11173433833219812840) is bigger than 100
It is ok when a Bint is compared with a numeric constant directly, but comparing with a "let constant" is not correct.
The text was updated successfully, but these errors were encountered:
bint(11173433833219812840) is lower than a hundred or equals
bint(11173433833219812840) is bigger than 100
It is ok when a Bint is compared with a numeric constant directly, but comparing with a "let constant" is not correct.
The text was updated successfully, but these errors were encountered: