Fixed max/min to use the proper double param

`vc_max` and `vc_min` were converting the double inputs to integers leading to unexpected values.