Alex
Created page with "local p = {} local paramTest = require('Module:Paramtest') local yesNo = require('Module:Yesno') function truncate(num) local whole, decimal = math.modf(num + 0.000001) -- addition is to prevent floating point rounding issues return whole end function sell(basePrice, shopBuysAt, delta, baseStock, currentStock, quantitySold, itemValue) local total = 0 local upperBound = truncate(itemValue + (shopBuysAt * itemValue)) -- Item value + base price shop buys at local..."