Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunti i sorgenti per Greenleaf Math Library (gfm.dll) git-svn-id: svn://10.65.10.50/trunk@10079 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			25 lines
		
	
	
		
			646 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			646 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
| #include <stdio.h>
 | |
| #include "gm.h"
 | |
| void main(void);
 | |
| 
 | |
| void	main()
 | |
| {
 | |
| 	DEC	x[1];
 | |
| 	char	s[30];
 | |
| 	
 | |
| 	ConvAsciiToDecimal(x, "12,345.6");
 | |
| 	
 | |
| 	ConvDecimalToAscii(s, x);
 | |
| 	printf("ConvDecimalToAscii:            %s\n", s);
 | |
| 	ConvDecimalToAsciiRound(s, x, 2);
 | |
| 	printf("ConvDecimalToAsciiRound:       %s\n", s);
 | |
| 	ConvDecimalToAsciiComma(s, x);
 | |
| 	printf("ConvDecimalToAsciiComma:       %s\n", s);
 | |
| 	ConvDecimalToAsciiCommaRound(s, x, 2);
 | |
| 	printf("ConvDecimalToAsciiCommaRound:  %s\n", s);
 | |
| 	ConvDecimalToScientific(s, x, -1);
 | |
| 	printf("ConvDecimalToScientific:       %s\n", s);
 | |
| 	ConvDecimalToEngineering(s, x, -1);
 | |
| 	printf("ConvDecimalToEngineering:      %s\n", s);
 | |
| }
 |