Jump to content

Module:ConvertMPHKMHTCStats: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

30 May 2025

  • curprev 23:2823:28, 30 May 2025 Sharkius talk contribs 492 bytes +492 Created page with "local p = {} function round(num, digits) digits = digits or 0 local mult = 10 ^ digits return math.floor(num * mult + 0.5) / mult end function p.main(frame) local args = frame.args local mph = tonumber(args[1]) local sigfig = tonumber(args["sigfig"]) or 4 if not mph then return "" end local kmh = mph * 1.609344 -- Round to nearest integer local rounded_mph = round(mph) local rounded_kmh = round(kmh) return string.format("%d (%d)", rounded_mph, rounded_k..."