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

3
LINES

< > BotCompany Repo | #1019904 // scaleInt - multiply int (or double) with double and round back to int

JavaX fragment (include)

static int scaleInt(double i, double d) {
  ret iround(i*d);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019904
Snippet name: scaleInt - multiply int (or double) with double and round back to int
Eternal ID of this version: #1019904/3
Text MD5: da04caf10ec4297f3ae0489aa37e71f7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-30 21:56:48
Source code size: 64 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 362 / 400
Version history: 2 change(s)
Referenced in: [show references]