Create a method for it (There is a reason functions are the oldest type of code organization, they work!)
if(inRange(a) && inRange(b))
...
This can be modified by your needs of course, but in general having another method with a good name is a fantastic solution. Also you're not distributing 1.0/0.0 constants throughout your code.
A more general purpose answer would be to create a RangeValidation class (Assuming you have other Validation classes)
RangeValidation criticalRange=new RangeValidation(0.0, 1.0);
criticalRange.validate(a);
criticalRange.validate(b);
This pattern is a bit more wordy at first but it can be used as part of a validation system--Imagine many different types of Validation objects that can all be run against a value with a simple allValidations.validate(a). Not very valuable with scalars, but the pattern could be used to validate more complex objects