fork(1) download
  1. #include <fenv.h>
  2. #include <stdio.h>
  3.  
  4. int main() {
  5. double a = 15.467;
  6. fesetround(FE_DOWNWARD);
  7. printf("%.1lf", a);
  8. }
  9.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
15.4