为您找到相关结果82,925个
完美解决java double数相加和相减的方案_java_脚本之家
public static Double add(Double value1, Double value2) { BigDecimal b1 = new BigDecimal(Double.toString(value1)); BigDecimal b2 = new BigDecimal(Double.toString(value2)); return b1.add(b2).doubleValue(); } /** * 提供精确的减法运算。 * * @param value1 被减数 * @param value2 减数 *...
www.jb51.net/article/2045...htm 2025-4-11
Web3.js查询以太币和代币余额及转账_javascript技巧_脚本之家
// 以太币转账 web3.eth.sendTransaction({ from: currentAccount, to: receiverAccount, value: '1000000000000000' }) .then(function(receipt){ console.log(receipt); }); // 代币转账 myContract.methods.transfer(to, amount).send({from: currentAccount}), function(error, transactionHash){ if(!error...
www.jb51.net/article/2631...htm 2025-4-7
比特币白皮书原版(附比特币白皮书中文版)_区块链技术_区块链_脚本之家
To implement a distributed timestamp server on a peer-to-peer basis, we will need to use a proof-of-work system similar to Adam Back's Hashcash, rather than newspaper or Usenet posts. The proof-of-work involves scanning for a value that when hashed, such as with SHA-256, the hash be...
www.jb51.net/blockchain/9592...html 2025-4-19