Convert length units

Asked Apr 18, 2022·1 reply·Last activity 4 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi everyone,

I would like to create a command where people can convert from meters to feet/inches. An example would be:

Command: !convert 42.2

Answer: 42.2 meters is equal to: 138 feet and 5.42 inches OR 138.45 feet OR 1661.42 inches

I appreciate the help!

1 reply

This can be done using the $(eval) variable all u would need to do is take input $(1) and convert it using math. :)