conv
Converts between various units, rounded to two decimal places.
Private
Content
45 lines{=(unita):{if({2}==c):{te}|{if({2}==k):{te}|{if({2}==f):{te}|{if({2}==r):{te}|{if({2}==m):{di}|{if({2}==cm):{di}|{if({2}==mm):{di}|{if({2}==km):{di}|{if({2}==in):{di}|{if({2}==ft):{di}|{if({2}==yd):{di}|{if({2}==mi):{di}|{if({2}==fbf):{di}|{if({2}==eif):{di}|{if({2}==g):{ma}|{if({2}==kg):{ma}|{if({2}==mg):{ma}|{if({2}==lbs):{ma}|{if({2}==t):{ma}|{if({2}==oz):{ma}|{if({2}==l):{vo}|{if({2}==ml):{vo}|{if({2}==cm3):{vo}|{if({2}==dm3):{vo}|{if({2}==m3):{vo}|{if({2}==ga):{vo}|{if({2}==tbls):{vo}|{if({2}==oly):{vo}|{if({2}==in3):{vo}|{if({2}==ft3):{vo}|{if({2}==floz):{vo}|{if({2}==cup):{vo}|x}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
{=(unitb):{if({3}==c):{te}|{if({3}==k):{te}|{if({3}==f):{te}|{if({3}==r):{te}|{if({3}==m):{di}|{if({3}==cm):{di}|{if({3}==mm):{di}|{if({3}==km):{di}|{if({3}==in):{di}|{if({3}==ft):{di}|{if({3}==yd):{di}|{if({3}==mi):{di}|{if({3}==fbf):{di}|{if({3}==eif):{di}|{if({3}==g):{ma}|{if({3}==kg):{ma}|{if({3}==mg):{ma}|{if({3}==lbs):{ma}|{if({3}==t):{ma}|{if({3}==oz):{ma}|{if({3}==l):{vo}|{if({3}==ml):{vo}|{if({3}==cm3):{vo}|{if({3}==dm3):{vo}|{if({3}==m3):{vo}|{if({3}==ga):{vo}|{if({3}==tbls):{vo}|{if({3}==oly):{vo}|{if({3}==in3):{vo}|{if({3}==ft3):{vo}|{if({3}==floz):{vo}|{if({3}==cup):{vo}|x}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
{break({any({unita}==x|{unitb}==x):True}==True):{if({1}==info):Converts between various units, rounded to two decimal places. Both units must be of the same unit type. List of currently supported units:
**Temperature**: Celsius (c), Fahrenheit (f), Kelvin (k), Rankine (r)
**Distance**: meter (m), centimeter (cm), millimeter (mm), kilometer (km), miles (mi), yards (yd), feet (ft), inches (in), American football fields (fbf), Eiffel towers (eif)
**Volume**: Liter (l), milliLiter (ml), gallons (ga), fluid ounces (floz), cubic centimeter (cm3), cubic decimeter (dm3), cubic meter (m3), cubic feet (ft3), cubic inches (in3), tablespoons (tbls), cups (cup), Olympic swimming pools (oly)
**Mass**: gram (g), milligram (mg), kilogram (kg), metric tons (t), pounds (lbs), ounces (oz)|Usage: !conv <amount> <unit to convert from> <unit to convert to>. For example: !conv 80 kg lbs
Type !conv info for a list of supported units.}}
{break({unita}!={unitb}):Incompatible unit conversion.}
{=(temp):{if({2}==k):{1}|{if({2}==c):{math:({1}+273.15)}|{if({2}==f):{math:(({1}+459.67)*5/9)}|{if({2}==r):{math:(({1}/1.8))}}}}}}
{=(dist):{if({2}==m):{1}|{if({2}==cm):{math:({1}/100)}|{if({2}==mm):{math:({1}/1000)}|{if({2}==km):{math:({1}*1000)}|{if({2}==in):{math:({1}/39.37)}|{if({2}==ft):{math:({1}/3.281)}|{if({2}==yd):{math:({1}/1.094)}|{if({2}==mi):{math:({1}*1609.34)}|{if({2}==fbf):{math:({1}*109.728)}|{if({2}==eif):{math:({1}*324)}}}}}}}}}}}}
{=(mass):{if({2}==g):{1}|{if({2}==kg):{math:({1}*1000)}|{if({2}==mg):{math:({1}/1000)}|{if({2}==lbs):{math:({1}*453.592)}|{if({2}==t):{math:({1}*1000000)}|{if({2}==oz):{math:({1}*28.3495)}}}}}}}}
{=(volu):{if({2}==l):{1}|{if({2}==ml):{math:({1}/1000)}|{if({2}==dm3):{1}|{if({2}==cm3):{math:({1}/1000)}|{if({2}==m3):{math:({1}*1000)}|{if({2}==ga):{math:({1}*3.785)}|{if({2}==floz):{math:({1}/33.814)}|{if({2}==in3):{math:({1}/61.024)}|{if({2}==ft3):{math:({1}*28.317)}|{if({2}==oly):{math:({1}*2500000)}|{if({2}==tbls):{math:({1}/67.628)}|{if({2}==cup):{math:({1}/4.227)}}}}}}}}}}}}}}
{if({3}==c):{math:(round(100*({temp}-273.15))/100)} °C}
{if({3}==k):{math:(round(100*{temp})/100)} Kelvin}
{if({3}==f):{math:(round(100*(({temp}*9/5)-459.67)/100))} °F}
{if({3}==r):{math:(round(100*{temp}*1.8)/100)} °R}
{if({3}==m):{math:(round(100*{dist})/100)} meter}
{if({3}==cm):{math:(round(10000*{dist})/100)} centimeter}
{if({3}==mm):{math:(round(100000*{dist})/100)} millimeter}
{if({3}==km):{math:(round({dist}/10)/100)} kilometer}
{if({3}==in):{math:(round(100*{dist}*39.37)/100)} inches}
{if({3}==ft):{math:(round(100*{dist}*3.281)/100)} feet}
{if({3}==yd):{math:(round(100*{dist}*1.094)/100)} yards}
{if({3}==mi):{math:(round(100*{dist}/1609.34)/100)} miles}
{if({3}==fbf):{math:(round(100*{dist}/109.728)/100)} American football fields}
{if({3}==eif):{math:(round(100*{dist}/324)/100)} Eiffel towers}
{if({3}==g):{math:(round(100*{mass})/100)} grams}
{if({3}==kg):{math:(round({mass}/10)/100)} kilogram}
{if({3}==mg):{math:(round(100000*{mass})/100)} milligram}
{if({3}==lbs):{math:(round(100*{mass}/453.592)/100)} pounds}
{if({3}==t):{math:(round({mass}/10000)/100)} metric tons}
{if({3}==oz):{math:(round(100*{mass}/28.3495)/100)} ounces}
{if({3}==l):{math:(round(100*{volu})/100)} Liter}
{if({3}==ml):{math:(round(100000*{volu})/100)} milliLiter}
{if({3}==dm3):{math:(round(100*{volu})/100)} cubic decimeter}
{if({3}==cm3):{math:(round(100000*{volu})/100)} cubic centimeter}
{if({3}==m3):{math:(round({volu}/10)/100)} cubic meter}
{if({3}==ga):{math:(round(100*{volu}/3.785)/100)} gallons}
{if({3}==floz):{math:(round(100*{volu}*33.814)/100)} fluid ounces}
{if({3}==in3):{math:(round(100*{volu}*61.024)/100)} cubic inches}
{if({3}==ft3):{math:(round(100*{volu}/28.317)/100)} cubic feet}
{if({3}==oly):{math:(round({volu}/25000)/100)} Olympic swimming pools}
{if({3}==tbls):{math:(round(100*{volu}*67.628)/100)} tablespoons}
{if({3}==cup):{math:(round(100*{volu}*4.227)/100)} cups}Raw JSON
{
"id": 50959,
"created_at": "2019-06-02T15:19:51.000Z",
"tag_name": "conv",
"nsfw": false,
"owner_id": "178656382449483787",
"uses": 206,
"description": "Converts between various units, rounded to two decimal places. ",
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "365310918923386880",
"sharer": "178656382449483787",
"content": "{=(unita):{if({2}==c):{te}|{if({2}==k):{te}|{if({2}==f):{te}|{if({2}==r):{te}|{if({2}==m):{di}|{if({2}==cm):{di}|{if({2}==mm):{di}|{if({2}==km):{di}|{if({2}==in):{di}|{if({2}==ft):{di}|{if({2}==yd):{di}|{if({2}==mi):{di}|{if({2}==fbf):{di}|{if({2}==eif):{di}|{if({2}==g):{ma}|{if({2}==kg):{ma}|{if({2}==mg):{ma}|{if({2}==lbs):{ma}|{if({2}==t):{ma}|{if({2}==oz):{ma}|{if({2}==l):{vo}|{if({2}==ml):{vo}|{if({2}==cm3):{vo}|{if({2}==dm3):{vo}|{if({2}==m3):{vo}|{if({2}==ga):{vo}|{if({2}==tbls):{vo}|{if({2}==oly):{vo}|{if({2}==in3):{vo}|{if({2}==ft3):{vo}|{if({2}==floz):{vo}|{if({2}==cup):{vo}|x}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}\n{=(unitb):{if({3}==c):{te}|{if({3}==k):{te}|{if({3}==f):{te}|{if({3}==r):{te}|{if({3}==m):{di}|{if({3}==cm):{di}|{if({3}==mm):{di}|{if({3}==km):{di}|{if({3}==in):{di}|{if({3}==ft):{di}|{if({3}==yd):{di}|{if({3}==mi):{di}|{if({3}==fbf):{di}|{if({3}==eif):{di}|{if({3}==g):{ma}|{if({3}==kg):{ma}|{if({3}==mg):{ma}|{if({3}==lbs):{ma}|{if({3}==t):{ma}|{if({3}==oz):{ma}|{if({3}==l):{vo}|{if({3}==ml):{vo}|{if({3}==cm3):{vo}|{if({3}==dm3):{vo}|{if({3}==m3):{vo}|{if({3}==ga):{vo}|{if({3}==tbls):{vo}|{if({3}==oly):{vo}|{if({3}==in3):{vo}|{if({3}==ft3):{vo}|{if({3}==floz):{vo}|{if({3}==cup):{vo}|x}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}\n{break({any({unita}==x|{unitb}==x):True}==True):{if({1}==info):Converts between various units, rounded to two decimal places. Both units must be of the same unit type. List of currently supported units:\n**Temperature**: Celsius (c), Fahrenheit (f), Kelvin (k), Rankine (r)\n**Distance**: meter (m), centimeter (cm), millimeter (mm), kilometer (km), miles (mi), yards (yd), feet (ft), inches (in), American football fields (fbf), Eiffel towers (eif)\n**Volume**: Liter (l), milliLiter (ml), gallons (ga), fluid ounces (floz), cubic centimeter (cm3), cubic decimeter (dm3), cubic meter (m3), cubic feet (ft3), cubic inches (in3), tablespoons (tbls), cups (cup), Olympic swimming pools (oly)\n**Mass**: gram (g), milligram (mg), kilogram (kg), metric tons (t), pounds (lbs), ounces (oz)|Usage: !conv <amount> <unit to convert from> <unit to convert to>. For example: !conv 80 kg lbs\nType !conv info for a list of supported units.}}\n{break({unita}!={unitb}):Incompatible unit conversion.}\n{=(temp):{if({2}==k):{1}|{if({2}==c):{math:({1}+273.15)}|{if({2}==f):{math:(({1}+459.67)*5/9)}|{if({2}==r):{math:(({1}/1.8))}}}}}}\n{=(dist):{if({2}==m):{1}|{if({2}==cm):{math:({1}/100)}|{if({2}==mm):{math:({1}/1000)}|{if({2}==km):{math:({1}*1000)}|{if({2}==in):{math:({1}/39.37)}|{if({2}==ft):{math:({1}/3.281)}|{if({2}==yd):{math:({1}/1.094)}|{if({2}==mi):{math:({1}*1609.34)}|{if({2}==fbf):{math:({1}*109.728)}|{if({2}==eif):{math:({1}*324)}}}}}}}}}}}}\n{=(mass):{if({2}==g):{1}|{if({2}==kg):{math:({1}*1000)}|{if({2}==mg):{math:({1}/1000)}|{if({2}==lbs):{math:({1}*453.592)}|{if({2}==t):{math:({1}*1000000)}|{if({2}==oz):{math:({1}*28.3495)}}}}}}}}\n{=(volu):{if({2}==l):{1}|{if({2}==ml):{math:({1}/1000)}|{if({2}==dm3):{1}|{if({2}==cm3):{math:({1}/1000)}|{if({2}==m3):{math:({1}*1000)}|{if({2}==ga):{math:({1}*3.785)}|{if({2}==floz):{math:({1}/33.814)}|{if({2}==in3):{math:({1}/61.024)}|{if({2}==ft3):{math:({1}*28.317)}|{if({2}==oly):{math:({1}*2500000)}|{if({2}==tbls):{math:({1}/67.628)}|{if({2}==cup):{math:({1}/4.227)}}}}}}}}}}}}}}\n{if({3}==c):{math:(round(100*({temp}-273.15))/100)} °C}\n{if({3}==k):{math:(round(100*{temp})/100)} Kelvin}\n{if({3}==f):{math:(round(100*(({temp}*9/5)-459.67)/100))} °F}\n{if({3}==r):{math:(round(100*{temp}*1.8)/100)} °R}\n{if({3}==m):{math:(round(100*{dist})/100)} meter}\n{if({3}==cm):{math:(round(10000*{dist})/100)} centimeter}\n{if({3}==mm):{math:(round(100000*{dist})/100)} millimeter}\n{if({3}==km):{math:(round({dist}/10)/100)} kilometer}\n{if({3}==in):{math:(round(100*{dist}*39.37)/100)} inches}\n{if({3}==ft):{math:(round(100*{dist}*3.281)/100)} feet}\n{if({3}==yd):{math:(round(100*{dist}*1.094)/100)} yards}\n{if({3}==mi):{math:(round(100*{dist}/1609.34)/100)} miles}\n{if({3}==fbf):{math:(round(100*{dist}/109.728)/100)} American football fields}\n{if({3}==eif):{math:(round(100*{dist}/324)/100)} Eiffel towers}\n{if({3}==g):{math:(round(100*{mass})/100)} grams}\n{if({3}==kg):{math:(round({mass}/10)/100)} kilogram}\n{if({3}==mg):{math:(round(100000*{mass})/100)} milligram}\n{if({3}==lbs):{math:(round(100*{mass}/453.592)/100)} pounds}\n{if({3}==t):{math:(round({mass}/10000)/100)} metric tons}\n{if({3}==oz):{math:(round(100*{mass}/28.3495)/100)} ounces}\n{if({3}==l):{math:(round(100*{volu})/100)} Liter}\n{if({3}==ml):{math:(round(100000*{volu})/100)} milliLiter}\n{if({3}==dm3):{math:(round(100*{volu})/100)} cubic decimeter}\n{if({3}==cm3):{math:(round(100000*{volu})/100)} cubic centimeter}\n{if({3}==m3):{math:(round({volu}/10)/100)} cubic meter}\n{if({3}==ga):{math:(round(100*{volu}/3.785)/100)} gallons}\n{if({3}==floz):{math:(round(100*{volu}*33.814)/100)} fluid ounces}\n{if({3}==in3):{math:(round(100*{volu}*61.024)/100)} cubic inches}\n{if({3}==ft3):{math:(round(100*{volu}/28.317)/100)} cubic feet}\n{if({3}==oly):{math:(round({volu}/25000)/100)} Olympic swimming pools}\n{if({3}==tbls):{math:(round(100*{volu}*67.628)/100)} tablespoons}\n{if({3}==cup):{math:(round(100*{volu}*4.227)/100)} cups}",
"embed": "{}",
"last_fetched": "2026-10-20T20:27:47.583Z"
}