From 9c5ec6b643268469a3396b86506d24fbf8e0e8ae Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 17 Aug 2007 00:14:27 +0000 Subject: an attempt to smooth out the order, let's hope CVS doesn't choke on all the adds and removes svn path=/trunk/; revision=8607 --- doc/tutorials/intro/41.floats_and_ints.pd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/tutorials/intro/41.floats_and_ints.pd (limited to 'doc/tutorials/intro/41.floats_and_ints.pd') diff --git a/doc/tutorials/intro/41.floats_and_ints.pd b/doc/tutorials/intro/41.floats_and_ints.pd new file mode 100644 index 00000000..5bb32cbe --- /dev/null +++ b/doc/tutorials/intro/41.floats_and_ints.pd @@ -0,0 +1,23 @@ +#N canvas 10 40 620 460 12; +#X obj -37 4 cnv 15 400 40 empty empty floats_and_ints 20 12 0 24 -228992 +-66577 0; +#X text -30 60 In Pd \, there is only one kind of number \, its generally +known as a "float" \, which is a word used in programming to mean a +"floating point number" \, i.e. a number with a decimal point in it. +; +#X text -24 242 Oftentimes \, its useful to use integers. For this +there is the [int] object.; +#X text 36 149 4.5; +#X text 79 205 1.234e+07; +#X text 188 162 -0.0032; +#X text 323 178 4.3332; +#X obj 223 322 int; +#X floatatom 223 358 5 0 0 1 int - -; +#X floatatom 164 358 5 0 0 0 float - -; +#X obj 226 286 hsl 128 15 0 20 0 0 empty empty empty -2 -6 0 8 -262144 +-1 -1 0 1; +#X text -22 396 floats and ints are direct representations of how your +CPU handles numbers.; +#X connect 7 0 8 0; +#X connect 10 0 9 0; +#X connect 10 0 7 0; -- cgit v1.2.1