Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does canvas support floating point numbers when drawing line or arc?

Tags:

In the canvas element, are floating point numbers actually treated as floats by the lineTo and arc methods?

For example:

context.moveTo(20.4562, 80.8923);
context.lineTo(120.1123, 90.2134);
context.arc(24.5113, 36.7989, 20.123, 0, Math.PI*2); 

Does canvas really support float number coordinates, or it just converting the float numbers to integers when drawing line, arc, rect, etc.?