- Timestamp:
 - Dec 21, 2005, 2:08:24 PM (20 years ago)
 - Location:
 - branches/network/src
 - Files:
 - 
          
- 3 edited
 
- 
          lib/network/converter.h (modified) (1 diff)
 - 
          subprojects/network/Makefile.am (modified) (1 diff)
 - 
          subprojects/network/network_unit_test.cc (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/network/src/lib/network/converter.h
r6219 r6225 25 25 static int byteArrayToInt(const byte* a); 26 26 27 //byte* floatToByteArray(float x);28 //float byteArrayToFloat(byte[] a);27 static int intToByteArray(int x, byte* a, int length); 28 static int byteArrayToInt(byte* a, int* x); 29 29 30 static int floatToByteArray(float x, byte* a, int length); 31 static int byteArrayToFloat(byte* a, float* x); 32 30 33 //Test 31 34 static char* floatToBinString(float x);  - 
        
branches/network/src/subprojects/network/Makefile.am
r6139 r6225 22 22 $(MAINSRCDIR)/lib/lang/class_list.cc \ 23 23 $(MAINSRCDIR)/util/loading/load_param.cc \ 24 $(MAINSRCDIR)/util/loading/factory.cc \ 24 25 $(MAINSRCDIR)/lib/util/substring.cc \ 25 26 $(MAINSRCDIR)/util/loading/load_param_description.cc \  - 
        
branches/network/src/subprojects/network/network_unit_test.cc
r6197 r6225 389 389 printf("ReConvert: %f \n", b); 390 390 */ 391 testFloatConverter 2(12.3f); printf("\n");392 testFloatConverter 2(134.25f); printf("\n");393 testFloatConverter 2(35.67e14f); printf("\n");391 testFloatConverter(12.3e-53f); printf("\n"); 392 testFloatConverter(134.26455646546548741661675165f); printf("\n"); 393 testFloatConverter(35.67e14f); printf("\n"); 394 394 395 395 return 0;  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






