Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1.     remain = string.sub(tostring(remain),3)
  2.     formatted = formatted .. "." .. remain ..
  3.                 string.rep("0", decimal - string.len(remain))
  4.   end
  5.  
  6.         -- attach prefix string e.g '$'
  7.   formatted = (prefix or "") .. formatted
  8.  
  9.         -- if value is negative then format accordingly
  10.   if (amount<0) then
  11.     if (neg_prefix=="()") then
  12.       formatted = "("..formatted ..")"
  13.     else
  14.       formatted = neg_prefix .. formatted
  15.     end
  16.   end
  17.  
  18.   return formatted
  19. end
  20.  
  21. -- Clear and make the pixel smaller because we are not blind
  22.  
  23. mon.setBackgroundColor(colors.black)
  24. mon.clear()
  25. mon.setTextScale(0.5)
  26.  
  27. -- Get the information from the index file
  28. getInfoFromFile()
  29.  
  30.  
  31. -- Add's the visual and starts the Loop
  32. addDrawBoxesSingleReactor()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement