Hi there
I have inherited a complex javascript calculator. Part of this project tests values by using constant "bands" which hold range values.
I am to add some functionality in a similar fashion, only they have given me specs like :
band 1 will be greater than 2.5.
band 2 will be 2 - 2.5
band 3 will be 1.7 - 2
Band 4 is less than 1.7
so my question is this: How can I declare one of these bands with 2.5 as a lower bound and infinity as an upper? or negative infinity as a lower bound? Is this even possible?
cheers in advance![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Tracey
Tracey
Remember... True happiness is not getting what you want...
Its wanting what you have got!
I have inherited a complex javascript calculator. Part of this project tests values by using constant "bands" which hold range values.
Code:
function FillBandingLimits(){
BandingLimits=new Array(7);
BandingLimits[0]=[0.00,15.5];
BandingLimits[1]=[15.5,16.5];
BandingLimits[2]=[16.5,17.5];
BandingLimits[3]=[17.5,18.5];
BandingLimits[4]=[18.5,19.5];
BandingLimits[5]=[19.5,20.5];
BandingLimits[6]=[20.5,21.5];
}
I am to add some functionality in a similar fashion, only they have given me specs like :
band 1 will be greater than 2.5.
band 2 will be 2 - 2.5
band 3 will be 1.7 - 2
Band 4 is less than 1.7
so my question is this: How can I declare one of these bands with 2.5 as a lower bound and infinity as an upper? or negative infinity as a lower bound? Is this even possible?
cheers in advance
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Tracey
Tracey
Remember... True happiness is not getting what you want...
Its wanting what you have got!