Skip to content
Snippets Groups Projects
Commit 0d8f5afa authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Switching to Math.pow()

parent 9614599b
No related branches found
No related tags found
1 merge request!1Distillery
......@@ -11,7 +11,7 @@ var notation = [ 6 ];
function init()
{
notation.push( 10**notation[0] );
notation.push( Math.pow(10, notation[0]) );
switch ( notation[0] ) {
case 6:
notation.push( "Mwei" );
......@@ -20,7 +20,7 @@ function init()
notation.push( "Gwei" );
break;
default:
notation = [ 6, 10**6, "Mwei" ];
notation = [ 6, Math.pow(10, 6), "Mwei" ];
}
bfa = new Libbfa();
web3 = bfa.newweb3();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment