A more ruby way to write this would be:

```ruby
 def get_cpu
   "CPU=#{self.VCPU.to_f/10}\n"
 end  
```