Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js Float32Array to percentage

const probability = 0.7;
const percentage = Math.round( ( probability * 100) );
console.log( percentage + "%" );
//=> 70%
 
PREVIOUS NEXT
Tagged: #js #percentage
ADD COMMENT
Topic
Name
6+5 =