Fandom

Pico-8 Wiki

Mid

162pages on
this wiki
Add New Page
Comments0 Share
mid( first, second, third )

Returns the middle of three numbers.

first
The first number.
second
The second number.
third
The third number.

Examples Edit

print(mid(8, 2, 4))           -- 4

print(mid(-3.5, -3.4, -3.6))  -- -3.5

print(mid(6, 6, 8))           -- 6

See also Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.