Total cost of buying my overpriced items (after tax):

Q-tips (3 ind.): $18

1 Pencil (with eraser removed): $120

Used toilet paper (you only need 3 sheets anyway): $21.6

*Tax for each item: 20% (in case you can't do math)

Multiplying numbers using functions:

3x5 = 15

78x37 = 2886

65375x345987 = 22618900125

2427546378530857x281546239856 = 6.8346655495141E+26

Writing a basic function message:

"Hello, I am Macintosh."

Embedding an image function:

Writing a link return function:

Apple.com

Calcutaing more item totals after tax:

6 books (18.99 each) cost (after tax) - $142.425

25 iPhones (14 base) cost (after tax) - $24968.75

30000000000 (3 billion) books (28.99 each) cost (after tax) - $1087125000000

(the tax for each item is 25%)

Calculating running total with global and static functions:

  1. 6 rare pencils ($3.99 each): $29.925 (after tax)

  2. 25 iPhones (14) ($799 each): $24998.675 (after tax)

  3. 1,000 books ($18.99 each): $25022.4125 (after tax)

Tax = 25% (of total)

Finding the total of 3 numbers (multiplied):

26764 x 3652894 x 3759387 = 367540436268435192

1312451927465 x 72654872365 x 375638576 = 3.5819402298661E+31

2463547 x 9732477 x 7235492 = 1.7348115541862E+20

Calculating value of a percent:

67% of 2456 = 1645.52

6324536% of 2424.5368 = 153340702.74925

5641% of 56789 = 3203467.49

Caclulating the total of 3 numbers (multiplied) pt.2:

4567 x 67497 x 46743 = 14408941041657

Calculating the total of 5 numbers (multiplied) and then finidng the percent value:

45% of (2142 x 243245 x 32542355 x 3244 x 242) = 5.9899209662635E+21

43.756% of (2424 x 324 x 876 x 34763 x 7365) = 7.7074256704257E+16

36.356% of (23 x 54 x 247 x 242 x 948) = 25586939790.023

-5% of (12 x 24 x 89 x 67 x 55) = -4722696

Multiplying 3 numbers together, dividing by another, and finding a comparable percentage value:

65.371% of ((3654 x 24652 x 2475)/415) = 351182557.42616

Calculating percentages:

What percent is 67 of 756?... 8.8624338624339%

What percent is 35.673 of 58.937?... 60.527342755824%

What percent is 343.8643 of 47325835?... 0.00072658897619028%

What percent is 4324 of 325735?... 1.3274594378866%

Multiplying fractions:

3/4 x 2/6 = 0.25

6/132 x 4/25 = 0.0072727272727273

4/26 x 6/13 = 0.071005917159763

Dividing fractions (multiplying by the reciprocal):

(1/2)/(2) = 0.25

(3/14)/(3/16) = 1.1428571428571

(16/81)/(5/4) = 0.15802469135802

Multiplying fractions (pt.2):

5/6078 x 6/7 = 0.00070511916513891

6/713 x 65/720 = 0.0075970079476391

Returning multiple messages from a function value:(book example):

Book availability: in stock

Pencil availability: low stock

Mug availability: out of stock

Finding total cost with optional discount parameters (book example i made adjustments to):

Cost of 36 items, each costing $3.99, with a 37.5% discount = $89.775

Cost of 360 items, each costing $5.35, with a 43.75% discount = $1083.375

This is how my PHP code looks in the browser: