Game Development Reference
In-Depth Information
Using Visual Formula
To become acquainted with the appearance of rational and irrational numbers,
use Visual Formula to perform a few divisions that result in different types of
numbers. Here are a few divisions to perform:
a. 1/2
b. 1/3
c. 2/4
d. 4/3
e. 1/17
f. 21/1
g. 0/6
h. 7/3
i. 1/7
j. 5/5
When you use Visual Formula to perform these divisions, one way to proceed
involves creating a ratio with fields you program to receive variable values
equivalent to the two numbers making up the ratio. Figure 2.7 illustrates how
Figure 2.7
How Visual Formula appears after you set up the ratio.
Search WWH ::




Custom Search