Witam Mam problem z wyświetleniem wartości PWM w %. Użyłem instrukcji fusing ale ona wyświetla mi wartość w ten sposób XX.X %. http://obrazki.elektroda.pl/6558296000_1380292410_thumb.jpg Jak to zrobić żeby wyświetliła XX % czyli jako liczbę całkowitą, bez kropki i miejsca po przecinku W załączniku plik.bas $sim $regfile = "m8def.dat" $crystal = 8000000 Config Pind.5 = Input Config Pind.6 = Output Config Pind.7 = Output Config Pinb.0 = Output Config Pinb.1 = Output Config Pinb.2 = Output Config Pinb.3 = Input Config Pinb.4 = Input Config Pinb.5 = Input Set Pind.5 Reset Pind.6 Reset Pind.7 Reset Pinb.0 Reset Pinb.1 Reset Pinb.2 Set Pinb.3 Set Pinb.4 Set Pinb.5 Ac Alias Pinb.0 Ss Alias Pind.7 Sg Alias Pind.6 Vcc_ok Alias Pind.5 Pk3 Alias Pind.6 Pk2 Alias Pind.7 Pk1 Alias Pinb.0 Dn Alias Pinb.3 Ok Alias Pinb.4 Up Alias Pinb.5 Config Lcd = 16 * 2 Config Lcdpin = Pin , Db4 = Portd.1 , Db5 = Portd.0 , Db6 = Portc.5 , Db7 = Portc.4 , E = Portd.3 , Rs = Portd.4 Cursor Off Deflcdchar 1 , 2 , 4 , 14 , 16 , 16 , 16 , 14 , 32 ' literka ć Deflcdchar 2 , 2 , 4 , 14 , 16 , 14 , 1 , 30 , 32 ' literka ś Deflcdchar 3 , 32 , 32 , 14 , 1 , 15 , 17 , 15 , 1 ' rliterka ą Config Watchdog = 1024 Start Watchdog Waitms 500 Config Timer1 = Pwm , Pwm = 9 , Compare A Pwm = Clear Up , Compare B Pwm = Clear Up , Prescale = 64 Pwm1b = 0 Dim Cool As Word Dim Cool1 As Single Dim Cool2 As String * 10 Pwm1a = 0 Dim Wirnik As Word Reset Watchdog Cls Cool = 508 Do If Up = 0 Then Waitms 25 If Up = 0 Then Incr Cool If Cool > 512 Then Cool = 512 End If Pwm1b = Cool Waitms 20 Reset Watchdog End If End If If Dn = 0 Then Waitms 25 If Dn = 0 Then Decr Cool If Cool >= 512 Then Cool = 0 End If Pwm1b = Cool Waitms 20 Reset Watchdog ' End If End If Cool1 = Cool * 0.1953125 Cool2 = Fusing(cool1 , "#.#") Cls Upperline Lcd "Obroty " ; Cool ; " PWM" Lowerline Lcd "Obroty " ; Cool2 ; " %" Loop End