Post Reply 
Dealing with Integers on the Prime. (SOLVED!)
04-14-2015, 12:23 AM
Post: #5
RE: Dealing with Integers on the Prime. Help!
(04-13-2015 10:35 PM)Spybot Wrote:  Hello Tim!

Thank for the feed back.

So, those are the real Integers (pretty scary though), that's why I wasn't able to input them.

So... Is it possible for a regular program in the Prime to accept only regular integers(1,2,3,4...) as input and at the same time to accept only positive ones, while using the INPUT command?

Thank you.

Spybot.

You can create a loop that contains the input command. Have your loop then process the result from the input command. Let's say you store the value entered in the variable intvar. The loop repeats so long as FP(intvar)<>0. FP() denotes the fractional part, and is an actual command.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Dealing with Integers on the Prime. Help! - Han - 04-14-2015 12:23 AM



User(s) browsing this thread: 1 Guest(s)