How do I input longs
I have my own class that extends Random that I made so I can save the seed and use it again later if something weird happens, but it doesn't let me paste the number in from console. Specifically the error I'm getting is
java: integer number too large
. The number is 3449410621531671124
.4 Replies
⌛
This post has been reserved for your question.
Hey @blockgoblin31! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Add an
L
at the end
In Java a number is an int or a double if there's a .
in it
If you need a long you suffix it with L
, for a float
you can add f
at the end, for anything else, you castty, didnt know that was a thing for longs.
Post Closed
This post has been closed by <@501514065068294154>.