Libraryless. Click here for Pure Java version (13023L/74K).
static int assertDivisibleBy(int divisor, int a) { if ((a % divisor) != 0) fail("Not divisible by " + divisor + ":" + a); ret a; }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035734 |
Snippet name: | assertDivisibleBy |
Eternal ID of this version: | #1035734/1 |
Text MD5: | 8effbd648f2bcaebd6bdbd34d2b36083 |
Transpilation MD5: | f0964dd7ab5cf6ff1b0fcd83370d75e9 |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-17 20:51:10 |
Source code size: | 142 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 140 / 181 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |