// filename:c2011-4-ex.c
// original examples and/or notes:
// 		(c) ISO/IEC JTC1 SC22 WG14 N1570, April 12, 2011
// 			C2011 c2011-4-ex.c
// compile and output mechanism:
// 		(c) Ogawa Kiyoshi, kaizen@gifu-u.ac.jp, December.29, 2013
// compile errors and/or wornings:
// 		(c) Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
// 			Target: x86_64-apple-darwin11.4.2 //Thread model: posix
// 		(c) LLVM 2003-2009 University of Illinois at Urbana-Champaign.#include <stdio.h>
//4. Conformance
//
//(c)kaizen@gifu-u.ac.jp
#include<stdio.h>
#include <fenv.h>
//#define __STDC_IEC_559__

int main(void){
#ifdef __STDC_IEC_559__ /* FE_UPWARD defined */
/* ... */
fesetround(FE_UPWARD);
printf("FE_UPWARD\n");
/* ... */
#endif
	
float f=3.999;
printf("c2011-4-ex.c %f\n", f);
}
// output may be
// c2011-4-ex.c 3.999000
