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

8
LINES

< > BotCompany Repo | #1002053 // Test Rat (rational numbers)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (118L/1K/4K).

1  
!752
2  
3  
p {
4  
  print("5 = " + new Rat(5));
5  
  print("5/4 = " + new Rat(5, 4));
6  
  print("10/4 = " + new Rat(10, 4));
7  
  print("eq: " + eq(new Rat(10, 4), new Rat(20, 8)));
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002053
Snippet name: Test Rat (rational numbers)
Eternal ID of this version: #1002053/1
Text MD5: 7f30c8424126f053f33a5e3a82ac7eef
Transpilation MD5: a0c862e31225710c8b5cad3417f83e1f
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-15 16:42:31
Source code size: 174 bytes / 8 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 505 / 553
Referenced in: [show references]