I\'ve got the following code which clones a canvas in fabricjs:
var canvas = new fabric.Canvas(\'c\'); canvas.width = 644.51234567; canvas.height = 644.51
Use NUM_FRACTION_DIGITS
fabric.Object.NUM_FRACTION_DIGITS = 10;
value = number of digit you want after decimal.
The default value is 2.