~dhis2-devs-core/dhis2/datamart

« back to all changes in this revision

Viewing changes to dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/MathUtils.java

  • Committer: Lars Helge Øverland
  • Date: 2012-08-25 11:49:05 UTC
  • mfrom: (7961.1.1 dhis2)
  • Revision ID: larshelge@gmail.com-20120825114905-jrqajve4y51j3e9j
Data mart, crosstabbing on org units rather than data element operands

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
    }
224
224
    
225
225
    /**
 
226
     * Tests whether the given double is equal to zero.
 
227
     * 
 
228
     * @param value the value.
 
229
     * @return true or false.
 
230
     */
 
231
    public static boolean isZero( double value )
 
232
    {
 
233
        return isEqual( value, 0d );
 
234
    }
 
235
    
 
236
    /**
226
237
     * Returns a random int between 0 and 999.
227
238
     */
228
239
    public static int getRandom()