jjfiv / dalvik-js

Project for CS 691ST - Dalvik VM implementation in Javascript
23 stars 11 forks source link

Need a method on Type class to truncate ints to the right size #74

Closed jjfiv closed 12 years ago

jjfiv commented 12 years ago

This method will take as input a type { double, float, int, short, or byte } and a javascript number. It will limit the range of the javascript number appropriately.

Type.prototype.trimNum