Skip to main content
Commonmark migration
Source Link

#SmileBASIC console, 12 11 bytes#

SmileBASIC console, 12 11 bytes

?@L*EXP(22) 

Error message (8 or 9 bytes):

Overflow 

Must be run from the console, otherwise it outputs a line number. Normally errors are formatted like {error} in {slot}:{line}({func}:{arg}), but this error isn't caused by a function and doesn't have a line number so only the error name is shown.

EXP(x) returns e^x, and e^22 is 3584912846.131588. This is outside the 32 bit signed integer range of -2147483648 to 2147483647. Multiplying a string (@L) by this value converts it to an integer, causing an overflow error.

#SmileBASIC console, 12 11 bytes#

?@L*EXP(22) 

Error message (8 or 9 bytes):

Overflow 

Must be run from the console, otherwise it outputs a line number. Normally errors are formatted like {error} in {slot}:{line}({func}:{arg}), but this error isn't caused by a function and doesn't have a line number so only the error name is shown.

EXP(x) returns e^x, and e^22 is 3584912846.131588. This is outside the 32 bit signed integer range of -2147483648 to 2147483647. Multiplying a string (@L) by this value converts it to an integer, causing an overflow error.

SmileBASIC console, 12 11 bytes

?@L*EXP(22) 

Error message (8 or 9 bytes):

Overflow 

Must be run from the console, otherwise it outputs a line number. Normally errors are formatted like {error} in {slot}:{line}({func}:{arg}), but this error isn't caused by a function and doesn't have a line number so only the error name is shown.

EXP(x) returns e^x, and e^22 is 3584912846.131588. This is outside the 32 bit signed integer range of -2147483648 to 2147483647. Multiplying a string (@L) by this value converts it to an integer, causing an overflow error.

added 8 characters in body
Source Link
12Me21
  • 6.8k
  • 1
  • 23
  • 40

#SmileBASIC console, 12 11 bytes#

?@L*EXP(22) 

Error message (8 or 9 bytes):

Overflow 

Must be run from the console, otherwise it outputs a line number. Normally errors are formatted like {error} in {slot}:{line}({func}:{arg}), but this error isn't caused by a function and doesn't have a line number so only the error name is shown.

EXP(x) returns e^x, and e^22 is 3584912846.131588. This is outside the 32 bit signed integer range of -2147483648 to 2147483647. Multiplying a string (@L) by this value converts it to an integer, causing an overflow error.

#SmileBASIC, 12 11 bytes#

?@L*EXP(22) 

Error message (8 or 9 bytes):

Overflow 

Must be run from the console, otherwise it outputs a line number. Normally errors are formatted like {error} in {slot}:{line}({func}:{arg}), but this error isn't caused by a function and doesn't have a line number so only the error name is shown.

EXP(x) returns e^x, and e^22 is 3584912846.131588. This is outside the 32 bit signed integer range of -2147483648 to 2147483647. Multiplying a string (@L) by this value converts it to an integer, causing an overflow error.

#SmileBASIC console, 12 11 bytes#

?@L*EXP(22) 

Error message (8 or 9 bytes):

Overflow 

Must be run from the console, otherwise it outputs a line number. Normally errors are formatted like {error} in {slot}:{line}({func}:{arg}), but this error isn't caused by a function and doesn't have a line number so only the error name is shown.

EXP(x) returns e^x, and e^22 is 3584912846.131588. This is outside the 32 bit signed integer range of -2147483648 to 2147483647. Multiplying a string (@L) by this value converts it to an integer, causing an overflow error.

edited body
Source Link
12Me21
  • 6.8k
  • 1
  • 23
  • 40

#SmileBASIC, 12 11 bytes#

?@L*EXP(22) 

Error message (8 or 9 bytes):

Overflow 

Must be run from the console, otherwise it outputs a line number. Normally errors are formatted like {error} in {slot}:{line}({func}:{arg}), but this error isn't caused by a function and doesn't have a line number so only the error name is shown.

EXP(x) returns e^x, and e^22 is 5849128463584912846.1315918131588. This is outside the 32 bit signed integer range of -2147483648 to 2147483647. Multiplying a string (@L) by this value converts it to an integer, causing an overflow error.

#SmileBASIC, 12 11 bytes#

?@L*EXP(22) 

Error message (8 or 9 bytes):

Overflow 

Must be run from the console, otherwise it outputs a line number. Normally errors are formatted like {error} in {slot}:{line}({func}:{arg}), but this error isn't caused by a function and doesn't have a line number so only the error name is shown.

EXP(x) returns e^x, and e^22 is 584912846.1315918. This is outside the 32 bit signed integer range of -2147483648 to 2147483647. Multiplying a string (@L) by this value converts it to an integer, causing an overflow error.

#SmileBASIC, 12 11 bytes#

?@L*EXP(22) 

Error message (8 or 9 bytes):

Overflow 

Must be run from the console, otherwise it outputs a line number. Normally errors are formatted like {error} in {slot}:{line}({func}:{arg}), but this error isn't caused by a function and doesn't have a line number so only the error name is shown.

EXP(x) returns e^x, and e^22 is 3584912846.131588. This is outside the 32 bit signed integer range of -2147483648 to 2147483647. Multiplying a string (@L) by this value converts it to an integer, causing an overflow error.

added 101 characters in body
Source Link
12Me21
  • 6.8k
  • 1
  • 23
  • 40
Loading
added 256 characters in body
Source Link
12Me21
  • 6.8k
  • 1
  • 23
  • 40
Loading
Source Link
12Me21
  • 6.8k
  • 1
  • 23
  • 40
Loading