Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Delisk

[java] Simple Question (Need answer fast!!!)

This topic is 6674 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I try really hard to find how to do this... I need to transfer the conten of a String (who only contain number) to a long variable. My long variable is call: Number1 My String is call: N1 I know the keyword parse as something to to with this... Please post code! Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Here you go: (java source code)

        
long Number1 = Long.parseLong(N1);


Hope this helped.

=============================
silly programmer vb is for kids.

Edited by - loserkid on July 13, 2000 11:23:57 PM

Share this post


Link to post
Share on other sites

char string = "12345";
long number = atol(&string);

Is this what you''re looking for?

When life hands you lemons, throw them at God's head.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!