Contact: aviboots(AT)netvision.net.il
43,987 questions
57,458 answers
573 users
function terabytesToPetabytes($terabytes) { return $terabytes / 1024.0; } $tb1 = 1398; $tb2 = 10; echo sprintf("%.2fPB\n", terabytesToPetabytes($tb1)); echo sprintf("%.4fPB\n", terabytesToPetabytes($tb2)); /* run: 1.37PB 0.0098PB */