v1
- by lamik 11/27/202000
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
let n = 2.5;
delete caserun single casemove downdrag and drop case


ready



function A(float) {
	return Math.trunc( float );
}

A(n);
delete caserun single casemove upmove downdrag and drop case


ready



function B(float) {
	return parseInt(float);
}

B(n);
delete caserun single casemove upmove downdrag and drop case


ready



function C(float) {
	return float | 0;
}

C(n);
delete caserun single casemove upmove downdrag and drop case


ready



function D(float) {
	return ~~float;
}

D(n);
delete caserun single casemove upmove downdrag and drop case


ready



function E(float) {
	return float >> 0;
}

E(n);
delete caserun single casemove upmove downdrag and drop case


ready



function F(float) {
	return float - float%1;
}

F(n);
delete caserun single casemove upmove downdrag and drop case


ready



function G(float) {
	return float ^ 0;
}

G(n);
delete caserun single casemove upmove downdrag and drop case


ready



function H(float) {
	return Math.floor( float );
}

H(n);
delete caserun single casemove upmove downdrag and drop case


ready



function I(float) {
	return Math.ceil( float );
}

I(n);
delete caserun single casemove upmove downdrag and drop case


ready



function J(float) {
	return Math.round( float );
}

J(n);
delete caserun single casemove upmove downdrag and drop case


ready



function K(float) {
	return float.toFixed(0);
}

K(n);
delete caserun single casemove updrag and drop case


ready



function L(float) {
	return float >>> 0;
}

L(n);
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN