MidPoint
Result# = MidPoint(LowerLimit, UpperLimit)
 
Parameters:

    LowerLimit = The lower limit of a range
    UpperLimit = The upper limit of a range
Returns:

    Result#
 

     MidPoint() returns the centre value of a given range.




Mini Tutorial:


  
; Display the MidPoint of 1 and 10
  Print MidPoint(1,10)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output:

  
  5.5
  

 
Related Info: ClipRange | ClipRange# | Comparisons | MaxVal | MaxVal# | MinVal | MinVal# | Range :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com