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

3
LINES

< > BotCompany Repo | #1036467 // negateIf

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

Transpiled version (31L) is out of date.

meta-for double also as int {
  static double negateIf(bool negate, double x) { ret negate ? -x : x; }
}

Author comment

Began life as a copy of #1036394

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036467
Snippet name: negateIf
Eternal ID of this version: #1036467/2
Text MD5: ee2bf08a1de2f3978a71235ff14d7fcf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-16 08:08:17
Source code size: 106 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 140 / 190
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)