wp-size-format

<xsl:include href="../plugins/tenandtwo-xslt-processor/xsl/wp.xsl" />

<xsl:call-template name="wp-size-format">
    <xsl:with-param name="bytes" select="$bytes" />
    <xsl:with-param name="decimals" select="$decimals" />
</xsl:call-template>

TEST 1 : PASS
wp-size-format :
– bytes = 1024

result :
1.00 KB


TEST 2 : PASS
wp-size-format :
– bytes = 1234567890

result :
1.15 GB


TEST 3 : PASS
wp-size-format :
– bytes = 12345678901234567890
– decimals = 1

result :
10.7 EB