round

Rounds the matrix elements to the specified number of fractional digits.

Parameters

digits Number

Number of fractional digits.

Returns

kendo.geometry.Matrix The current matrix instance.

Example

<script>
    var geom = kendo.geometry;
    var matrix = new geom.Matrix(1.123456, 0.987654, 0.345678, 1.765432, 10.234567, 5.876543);
    console.log("Before rounding:", matrix.toString());
    matrix.round(2);
    console.log("After rounding to 2 digits:", matrix.toString());
</script>
In this article
round
Not finding the help you need?
Contact Support