<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">class Representant{
public static void main (String args[]){

		
		/*******************************************************/
		// Pour voir de suite quelques reprÃ©sentants de relatifs et de nombres Ã&nbsp; virgule
		
		
		
		/******************** Quelques  entiers relatifs*************************/
		
		System.out.println("Le reprÃ©sentant de 4 sur 32 bits en machine est : ");
		System.out.println(Integer.toBinaryString(4));
		System.out.println("Le reprÃ©sentant de 4 sur 64 bits en machine est : ");
		System.out.println(Long.toBinaryString(4));
		System.out.println("Le reprÃ©sentant de -4 sur 32 bits en machine est : ");
		System.out.println(Integer.toBinaryString(-4));
		System.out.println("Le reprÃ©sentant de 4 sur 64 bits en machine est : ");
		System.out.println(Long.toBinaryString(-4));
		
		/*****************Nombres Ã&nbsp; virgule************************************/
		System.out.println("Le reprÃ©sentant de 4 sur 32 bits en machine est : ");
		System.out.println(Integer.toBinaryString(4));
		System.out.println("Le reprÃ©sentant de 4.0 sur 32 bits en machine est : ");
		System.out.println(Integer.toBinaryString(Float.floatToIntBits(2.1f)));
		
		System.out.println("Le reprÃ©sentant de 4 sur 64 bits en machine est : ");
		System.out.println(Long.toBinaryString(4));
		System.out.println("Le reprÃ©sentant de 4.0 sur 64 bits en machine est : ");
		System.out.println(Long.toBinaryString(Double.doubleToLongBits(4.0)));
		
		
		}
}</pre></body></html>