[Tutor] Boosts

Prasad, Ramit ramit.prasad at jpmorgan.com
Mon Jul 1 22:58:38 CEST 2013


Dave Angel wrote:
> On 07/01/2013 04:41 PM, Jack Little wrote:
> > In my concept, when the player buys a boost, their karma (a global) is multiplied by 25% when added
> to. How would I do this?
> >
> 
> 
> Making a changeable global is almost certainly a mistake.
> 
> But to multiply by 25%, you simply divide by 4.
> 
> karma /= 4
> 

I get the feeling the OP might have meant "increased by 25%" in which case multiply by 1.25.

karma*= 1.25

> 
> 
> --
> DaveA


~Ramit P


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  


More information about the Tutor mailing list