Custom query with DECIMAL(5,2)

Answer taken from here: meta_query: using BETWEEN with floats and/or casting to DECIMAL

add_filter('get_meta_sql','cast_decimal_precision');

function cast_decimal_precision( $array ) {

    $array['where'] = str_replace('DECIMAL','DECIMAL(5,2)',$array['where']);

    return $array;
}

tech