Wikia

FiM++ Community Wiki

Add

Revision as of 00:45, February 28, 2013 by Supuhstar (wall | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
58pages on
this wiki
Comments0

The add operator is an arithmetic operator which performs the sum of two number objects.

Its token is named ADDITION.

Phrases Edit

Infix Edit

Icon Info
See Also: Infix notation

Infix notation can be achieved using the phrases added to, plus or and.

Its FDS is


Example Edit

I wrote the number 2 added to the number 5.

This prints 7.

Java equivalent:

System.out.println((double)2 + (double)5);

Prefix Edit

Icon Info
See Also: Prefix notation

Prefix notation can be achieved using the phrase add and the infix separator and.

Its FDS is

Example Edit

I wrote add 2 and 5.
7

Increment Edit

Icon Info
Mane article: Increment

The increment operator is a special case of addition, and adds the fixed value 1 to a variable and cannot be used on literals. This operator is a single instruction by itself. It can be achieved by using the phrase got one more.

Its FDS is

<variable:number><whitespace>got one more<punctuation>

Example Edit

Spike got one more.

This adds 1 to the variable Spike.

Java equivalent:

Spike++;


Icon Info
This article is a stub. You can help FiM++ Wiki by expanding it.

Around Wikia's network

Random Wiki