Created
September 15, 2010 00:49
-
-
Save iDiogenes/580063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@quotasize = 4G | |
storage = @quotasize.slice!(/GMT/) | |
quota_thres = sprintf('%0.2f',(@quotasize.to_f/((1+0.10)))) | |
puts storage | |
puts quota_thres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@quotasize = "4.34G"
p @quotasize.slice!(/[GMT]/)
p sprintf('%0.2f',(@quotasize.to_f/((1+0.10))))