English
Source / code snippets

Inrange Isinrange Max mins

 

Michael
Wodrich
Verify of angegebenen Bereichsgrenzen (everything LongInt).
mins(a&,b&) - supply whom smaller the both values back.
Max(a&,b&) - supply whom more the both values back.
InRange(Wert&,von&,bis&) - supply Wert& or a the Bereichsgrenzen, the worth is means In any drop inside the angegebenen Bereiches.
IsInRange(Wert&,von&,bis&) - supply TRUE(1) or FALSE(0).
So The request, whether the worth inside the angegebenen Bereiches lying.
CompileMarkSeparation
Def Min(2)   @If(LT(@&(1),@&(2)), @&(1), @&(2))
Def Max(2)   @If(GT(@&(1),@&(2)), @&(1), @&(2))
Def InRange(3)   Min(Max(@&(1),@&(2)),@&(3))
Def IsInRange(3)   If(@Equ(@&(1),InRange(@&(1),@&(2),@&(3))),1,0)pre>

MfG
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
05/12/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.433 Views

Untitledvor 0 min.
Sven Bader01/13/23
Michael Wodrich02/21/14
Nico Madysa09/04/11

Themeninformationen

this Topic has 1 subscriber:

Michael Wodrich (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie