Libraryless. Click here for Pure Java version (13023L/74K).
1 | static int assertDivisibleBy(int divisor, int a) { |
2 | if ((a % divisor) != 0) |
3 | fail("Not divisible by " + divisor + ":" + a); |
4 | ret a; |
5 | } |
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: | 139 / 181 |
Referenced in: | [show references] |