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

11
LINES

< > BotCompany Repo | #1036627 // isNonZero

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (48L) is out of date.

sbool isNonZero(Double d) {
  ret d != null && !isNaN(d) && d != 0;
}

sbool isNonZero(Long l) {
  ret l != null && l != 0;
}

sbool isNonZero(Int i) {
  ret i != null && i != 0;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): gjtlkbvenryc, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036627
Snippet name: isNonZero
Eternal ID of this version: #1036627/4
Text MD5: 3dc8fd614037da0e69d60a725726acf9
Author: stefan
Category: javax / gazelle 22
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2024-05-22 20:57:18
Source code size: 190 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 201 / 271
Version history: 3 change(s)
Referenced in: #761 - New #629 - Standard functions list (LIVE) - continued on #1006654