@@ -239,10 +239,13 @@ int float32_to_int32(
239239 } else {
240240 // We are using a pre-defined quanta per stream.
241241 squanta = quanta [istream ];
242- if (squanta < min_quanta ) {
243- // The requested quanta is too small
244- return ERROR_CONVERT_TYPE ;
245- }
242+ // Commented out, since there might be times when the
243+ // user wants to truncate the peaks of the data.
244+ //-----------------------------------------------------
245+ // if (squanta < min_quanta) {
246+ // // The requested quanta is too small
247+ // return ERROR_CONVERT_TYPE;
248+ // }
246249 }
247250
248251 if (squanta == 0 ) {
@@ -313,10 +316,13 @@ int float64_to_int32(
313316 } else {
314317 // We are using a pre-defined quanta per stream.
315318 squanta = quanta [istream ];
316- if (squanta < min_quanta ) {
317- // The requested quanta is too small
318- return ERROR_CONVERT_TYPE ;
319- }
319+ // Commented out, since there might be times when the
320+ // user wants to truncate the peaks of the data.
321+ //-----------------------------------------------------
322+ // if (squanta < min_quanta) {
323+ // // The requested quanta is too small
324+ // return ERROR_CONVERT_TYPE;
325+ // }
320326 }
321327
322328 if (squanta == 0 ) {
0 commit comments