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

3
LINES

< > BotCompany Repo | #1015023 // limitBetween0and1

JavaX fragment (include)

static float limitBetween0and1(float f) {
  ret max(0f, min(1f, f));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015023
Snippet name: limitBetween0and1
Eternal ID of this version: #1015023/2
Text MD5: 8d39e02a4bd982b36d683e14708a3f42
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-07 01:25:29
Source code size: 72 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 373 / 410
Version history: 1 change(s)
Referenced in: [show references]