Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1036229 // roundTo - unintuitive argument order

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (79L/1K).

static double roundTo(double n, double x) {
  return round(doubleRatio(x, n))*n;
}

Author comment

Began life as a copy of #1013672

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036229
Snippet name: roundTo - unintuitive argument order
Eternal ID of this version: #1036229/1
Text MD5: 4f6cfbfcde286676b49ff7d270d139d0
Transpilation MD5: aa1d13b7f9546ce0da6b37b227957e8a
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-26 04:01:50
Source code size: 84 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 124 / 171
Referenced in: [show references]