ummm..getting the remainder?

Non-platform specific questions.

ummm..getting the remainder?

Postby poopbrigade » Sat May 08, 2010 11:26 pm

I know a way to get the remainder in an equation but is there a function in GE to get it instantly?
When life gives you oranges, make orange juice. When life gives you poop, make fertilizer not poop juice.

Image
Current project __ CorPsEdEaRtH
Estimated work done __ 12%
User avatar
poopbrigade
 
Posts: 129
Joined: Thu Aug 27, 2009 12:17 pm
Location: In Earth. Being Burried XD
Score: 46 Give a positive score

Re: ummm..getting the remainder?

Postby pyrometal » Sun May 09, 2010 1:37 am

Use the "%" operator on integer, otherwise use the fmod(double val); function.
SPRITE WARRIOR:
Free, open-source & crossplatform pixel art editor (currently under construction).
User avatar
pyrometal
 
Posts: 706
Joined: Wed Nov 28, 2007 4:07 am
Location: Kingston, ON, Canada
Score: 86 Give a positive score

Re: ummm..getting the remainder?

Postby poopbrigade » Sun May 09, 2010 9:05 am

XD tanx alot.
When life gives you oranges, make orange juice. When life gives you poop, make fertilizer not poop juice.

Image
Current project __ CorPsEdEaRtH
Estimated work done __ 12%
User avatar
poopbrigade
 
Posts: 129
Joined: Thu Aug 27, 2009 12:17 pm
Location: In Earth. Being Burried XD
Score: 46 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron