Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:CalcFit
(view source)
Revision as of 10:37, 5 November 2017
6 bytes added
,
8 years ago
m
no edit summary
Line 17:
Line 17:
difference = function(context)
difference = function(context)
if context.hit_rate then
if context.hit_rate then
−
local diff = (context.cl1 + context.cl2) / (context.cl0 + context.cl1 + context.cl2) - context.hit_rate
+
local diff =
100 *
(context.cl1 + context.cl2) / (context.cl0 + context.cl1 + context.cl2) - context.hit_rate
return string.format("%.2f%%", diff)
return string.format("%.2f%%", diff)
else
else
がか
cssedit, gkautomate,
Interface administrators
,
Widget editors
7,212
edits