Duh!!! So simple I never would have thought of it.........well maybe in a week or two.... I am alwqys looking for a more complicated method. that is what happens when you get old!
Thanks...
Type: Posts; User: kwelna; Keyword(s):
Duh!!! So simple I never would have thought of it.........well maybe in a week or two.... I am alwqys looking for a more complicated method. that is what happens when you get old!
Thanks...
Actually the if statements work fine, but I like adding the "Else" statements and "EndIf"s to clean up the code (Thank you Sazer). and comments to clarify the logic behind my code. My real issue is...
Thank you for all our help on my last post. It all really helped. To be honest, I finially just looked at the generated number and then based on its value fired off one of 5 sub routines. Here is...
Oooh now I get it and the useage of the // function. OK so in essence, it always rounds down.....way easier. Sorry to be so thick
It is about 20 pages long. basically it lists the functions available in pic basic and a single line about syntax. in my case it is the "Let" function. So
Here is the only reference to division:...
Nothing about floating point numbers. My version of pic basic is from when I purchased it in 2002 to make a specialized timer for a friend. I have not used it since if that helps. The manual is...
no I am using pic basic, not the pro. I do have the manual, I assume thisis ususing the "//" remianer function? I am not sure how this functions.....
Newbe here,
I am working on a project where I can randomly light one of 5 LED attached to portb. PicBasic has a random number generator that will write a random number between 1 and aprox 65K to a...