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

3
LINES

< > BotCompany Repo | #1022931 // clipDouble

JavaX fragment (include)

static double clipDouble(double min, double max, double d) {
  ret max(min, min(max, d));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022931
Snippet name: clipDouble
Eternal ID of this version: #1022931/1
Text MD5: d6f4eff716f189dbbec0cbbaed13ae01
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 23:07:13
Source code size: 93 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 310 / 327
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1022934 - clipInt