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   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

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: 94 / 118
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1019904 & http://1019904.tinybrain.de