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

3
LINES

< > BotCompany Repo | #1028080 // clipZeroToOne

JavaX fragment (include)

static double clipZeroToOne(double x) {
  ret max(0, min(1, x));
}

Author comment

Began life as a copy of #1028079

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028080
Snippet name: clipZeroToOne
Eternal ID of this version: #1028080/1
Text MD5: de6e6af34d9295ca1d148f9450ff5422
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-17 15:29:59
Source code size: 68 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 129 / 159
Referenced in: [show references]