Double test1 = 1000.0;
Double Test2 = 1000.12345;
Double test3 = 1000.1289;
Int Test 4 = 1000;
String test5 = "1000 ";
String test6 = "1000.12345 ";
String test7 = "1000.1289"
Convert. todouble (test1). tostring ("0.00"); // retain the last two digits of the decimal point. The result is 1000.00.
Convert. todouble (Test2). tostring ("0.00"); // retain the last two digits of the decimal point. The result is 1000.12.
Convert. todouble (test3). tostring ("0.00"); // retain the last two digits of the decimal point. The result is 1000.13.
Convert. todouble (test4). tostring ("0.00"); // retain the last two digits of the decimal point. The result is 1000.00.
Convert. todouble (test5). tostring ("0.00"); // retain the last two digits of the decimal point. The result is 1000.00.
Convert. todouble (test6). tostring ("0.00"); // retain the last two digits of the decimal point. The result is 1000.12.
Convert. todouble (test7). tostring ("0.00"); // retain the last two digits of the decimal point. The result is 1000.13.