# Author:: Nicolas Pouillard . # Copyright:: Copyright (c) 2004, 2005 TTK team. All rights reserved. # License:: LGPL # $Id: WFloat.rb 567 2005-04-13 08:00:06Z polrop $ module TTK module Weights class WFloat < Weight def get return to_f if nan? (to_f * 100).floor.to_s + '%' end end # class WFloat end # module Weights end # module TTK