Search found 3 matches

by JadeLana
Fri Nov 06, 2009 7:02 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to tell if a variable is a whole number or decimal
Replies: 9
Views: 18708

Good idea. I'll try that out.
by JadeLana
Fri Oct 16, 2009 4:34 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to tell if a variable is a whole number or decimal
Replies: 9
Views: 18708

No, I'm not even in a programming class. I learned BASIC a long, long time ago and redundant statements like LET are second nature. Also I assumed that no one would think I would want to divide by zero. XD If I declare Z as an integer, it will round, right? What I want is like a way for the program ...
by JadeLana
Fri Oct 16, 2009 2:05 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to tell if a variable is a whole number or decimal
Replies: 9
Views: 18708

How to tell if a variable is a whole number or decimal

Maybe I'm not using the right search words, but I can't find it! Is it possible?

I want to know if say:

LET X = 5
LET Y = 3
LET Z = X/Y

So Z would be 1.66666... would there be a way to know that for any values of X and Y?