Thread Integer in Proznt angeben (6 answers)
Opened by Gast at 2004-12-13 13:14

Crian
 2004-12-13 13:15
#49955 #49955
User since
2003-08-04
5873 Artikel
ModeratorIn
[Homepage]
user image
perldoc -f printf


Beispiel:

Code: (dl )
1
2
3
my $nonuk = 4712;
my $ges = 8961;
printf "Nukleotide gesamt: %d\nNukleotide prozentual: %.2f\n", $nonuk, 100 * $nonuk / $ges;


Ausgabe:

Code: (dl )
1
2
Nukleotide gesamt: 4712
Nukleotide prozentual: 52.58
\n\n

<!--EDIT|Crian|1102936810-->
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;

use strict; use warnings; Link zu meiner Perlseite

View full thread Integer in Proznt angeben