PHP Classes

File: CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/utils/abs-round.js

Recommend this page to a friend!
  Classes of James Brows   Coffee CMS   CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/utils/abs-round.js   Download  
File: CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/utils/abs-round.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Coffee CMS
Content management system using MVC based themes
Author: By
Last change:
Date: 2 years ago
Size: 167 bytes
 

Contents

Class file image Download
export default function absRound (number) { if (number < 0) { return Math.round(-1 * number) * -1; } else { return Math.round(number); } }