RUBY Using NUMBERS

282 views · Published 15 October 2013 · 2:45 · Indexed 15 October 2026

Channel: theurbanpenguin · 2013 · Education

Watch on YouTube

More videos like this online at http://www.theurbanpenguin.com
Arithmetic calculations with integers will only produce integers in ruby. If we want more accuracy then we can use floats. 7 / 4 will give 1 but if one integer is changed to a float 7.0 / 4 we get 1.75

More from this channel