@@ -57,6 +57,7 @@ hardware wallets—even if you use a remote RPC node like Infura's.
5757 - [ ` seth --calldata-decode ` ]
5858 - [ ` seth --from-ascii ` ]
5959 - [ ` seth --from-bin ` ]
60+ - [ ` seth --from-fix ` ]
6061 - [ ` seth --from-wei ` ]
6162 - [ ` seth --max-int ` ]
6263 - [ ` seth --max-uint ` ]
@@ -65,6 +66,7 @@ hardware wallets—even if you use a remote RPC node like Infura's.
6566 - [ ` seth --to-ascii ` ]
6667 - [ ` seth --to-bytes32 ` ]
6768 - [ ` seth --to-dec ` ]
69+ - [ ` seth --to-fix ` ]
6870 - [ ` seth --to-hex ` ]
6971 - [ ` seth --to-int256 ` ]
7072 - [ ` seth --to-uint256 ` ]
@@ -374,6 +376,14 @@ Convert binary data into hex data.
374376
375377Reads binary data from standard input and prints it as hex data.
376378
379+ ### ` seth --from-fix `
380+
381+ Convert fixed point numbers into parsed integers with the specified number of decimals.
382+
383+ seth --from-fix <decimals> <value>
384+
385+ For example, use ` seth --to-fix 6 1 ` to convert 1 USDC into the parsed quantity of 1,000,000 USDC
386+
377387### ` seth --from-wei `
378388
379389Convert a wei amount into another unit (ETH by default).
@@ -430,6 +440,14 @@ Convert a hex value with 0x prefix into a decimal number.
430440
431441 seth --to-dec <hexvalue>
432442
443+ ### ` seth --to-fix `
444+
445+ Convert parsed integers into fixed point with the specified number of decimals.
446+
447+ seth --to-fix <decimals> <value>
448+
449+ For example, use ` seth --to-fix 6 1000000 ` to convert the parsed amount of 1,000,000 USDC into a formatted amount of 1 USDC.
450+
433451### ` seth --to-hex `
434452
435453Convert a decimal number into a hex value.
@@ -865,7 +883,9 @@ Show all fields unless `<field>` is given.
865883[ `seth --abi-decode` ] : #seth---abi-decode
866884[ `seth --from-ascii` ] : #seth---from-ascii
867885[ `seth --from-bin` ] : #seth---from-bin
886+ [ `seth --from-fix` ] : #seth---from-fix
868887[ `seth --from-wei` ] : #seth---from-wei
888+ [ `seth --to-fix` ] : #seth---to-fix
869889[ `seth --to-wei` ] : #seth---to-wei
870890[ `seth --to-int256` ] : #seth---to-int256
871891[ `seth --to-uint256` ] : #seth---to-uint256
0 commit comments