02-28-2021, 10:31 AM
If you want to get the predecessor of a number in Ruby you can do it as follows:
This will print 0 on the screen
Quote:puts 1.pred
This will print 0 on the screen
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos