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

7
LINES

< > BotCompany Repo | #1012740 - ratio - dividing without DivisionByZero

JavaX fragment (include)

static long ratio(long x, long y) {
  ret y == 0 ? 0 : x/y;
}

static double ratio(double x, double y) {
  ret y == 0 ? 0 : x/y;
}

Author comment

Began life as a copy of #1008544

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1012740
Snippet name: ratio - dividing without DivisionByZero
Eternal ID of this version: #1012740/4
Text MD5: 3e9d3da1a2e845553032d49c882c60fd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-23 18:26:11
Source code size: 136 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 387 / 349
Version history: 3 change(s)
Referenced in: [show references]

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