Conocemos todos los lados de este triángulo, así que podemos usar la fórmula de Herón para calcular su área.
La fórmula de Herón establece que el área de un triángulo A=\sqrt{s(s-a)(s-b)(s-c)}
s = \dfrac{ a + b + c }{ 2 }
s = \dfrac{ commafy(SIDES[0]) + commafy(SIDES[1]) + commafy(SIDES[2]) }{ 2 }
s = \dfrac{ localeToFixed( SIDES[ 0 ] + SIDES[ 1 ] + SIDES[ 2 ], 1) }{ 2 }
s = commafy(S)
A = \sqrt{ commafy(S) \cdot ( commafy(S) - commafy(SIDES[0]) ) \cdot ( commafy(S) - commafy(SIDES[1]) ) \cdot ( commafy(S) - commafy(SIDES[2]) ) }
A = \sqrt{ commafy(S) \cdot commafy(roundTo(2, S - SIDES[ 0 ])) \cdot commafy(roundTo(2, S - SIDES[ 1 ])) \cdot commafy(roundTo(2, S - SIDES[ 2 ])) }
A = commafy(ANS)