Skip to content

Instantly share code, notes, and snippets.

@netodevel
Created December 29, 2015 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netodevel/3e842cd1be502c193ab9 to your computer and use it in GitHub Desktop.
Save netodevel/3e842cd1be502c193ab9 to your computer and use it in GitHub Desktop.
System.out.println("");
System.out.println("================================================");
System.out.println("================ PASSO 7.0 =====================");
System.out.println("================================================");
System.out.println("");
BigDecimal Mass = BigDecimal.ZERO;
BigDecimal C = valoresCwxt.get(valoresCwxt.size() - 1); // é o ultimo valor de Cwxt
BigDecimal xSource = LENGTH_OF_SOURCE.multiply(new BigDecimal("100"));
BigDecimal ySource = WIDTH_OF_SOURCE.multiply(new BigDecimal("100"));
Mass = q.multiply(C).divide(xSource.multiply(ySource));
System.out.println("Valore de Mass (8,92E-103): " + nb.format(Mass));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment