Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- calculateSum = () => {
- const { peso, altura } = this.state;
- this.setState({
- imc: (Number(peso) / (Number(altura)*Number(altura))) * 10000
- });
- }
- var value = 10;
- value = value.toFixed(2);
- this.setState({subTotal: value});
- calculateSum = () => {
- const { peso, altura } = this.state;
- this.setState({
- imc: ((Number(peso) / (Number(altura)*Number(altura))) * 10000).toFixed(2);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement