|
GuidesHowtosReferenceTutorialsTraining
|
AboutContributeSupport
|
search
|
GuidesHowtosReferenceTutorialsTraining
|
AboutContributeSupport
|
search
  • Guides
  • Howtos
  • Reference
  • Tutorials
  • Training
  • generateStackTransform
  • getTransformedBounds
  • mergeI18n
  • utils.applyTransformToPoint()
  • utils.beamIntersectsCircle()
  • utils.beamIntersectsCurve()
  • utils.beamIntersectsX()
  • utils.beamIntersectsY()
  • utils.beamsIntersect()
  • utils.capitalize()
  • utils.circlesIntersect()
  • utils.combineTransform()
  • utils.curveEdge()
  • utils.curveIntersectsX()
  • utils.curveIntersectsY()
  • utils.curvesIntersect()
  • utils.deg2rad()
  • utils.lineIntersectsCircle()
  • utils.lineIntersectsCurve()
  • utils.linesIntersect()
  • utils.mergeOptions()
  • utils.pctBasedOn()
  • utils.pointOnBeam()
  • utils.pointOnCurve()
  • utils.pointOnLine()
  • utils.rad2deg()
  • utils.round()
  • utils.splitCurve()
  • utils.stretchToScale()
  • utils.units()
  • Reference
  • Core API
  • utils
  • utils.round()

utils.round()

Table of contents

  • Signature
  • Example

The utils.round() function rounds a value to two decimals.

Signature

Javascript
float utils.round(float value)

Example

Javascript
utils.round(0.1234) // 0.12
utils.round(5.6789) // 5.68
utils.rad2deg()utils.splitCurve()

Contents by

  • Authors:
    • Joost De Cock
  • Maintainers:
    • Joost De Cock
  • Last updated: 3 days, 11 hours ago

Table of contents

  • Signature
  • Example
FreeSewing

Come for the sewing patterns
Stay for the community

  • Search
  • Sitemap
Search powered by Algolia
Error reporting by Bugsnag
Translation powered by Crowdin
Builds and Hosting by Vercel