(value: string)
| 93 | const ptxFloat64 = /^0[dD]([0-9a-fA-F]{16})$/; |
| 94 | |
| 95 | function parseNumericValue(value: string): bigInt.BigInteger | null { |
| 96 | const hexMatch = hexLike.exec(value) || hexLike2.exec(value); |
| 97 | if (hexMatch) return bigInt(hexMatch[2], 16); |
| 98 | |
| 99 | const hexMatchPTX = ptxFloat32.exec(value) ?? ptxFloat64.exec(value); |
| 100 | if (hexMatchPTX) return bigInt(hexMatchPTX[1], 16); |
| 101 | |
| 102 | const decMatch = decimalLike.exec(value); |
| 103 | if (decMatch) return bigInt(decMatch[2]); |
| 104 | |
| 105 | return null; |
| 106 | } |
| 107 | |
| 108 | export function getNumericToolTip(value: string, digitSeparator?: string): string | null { |
| 109 | const formatNumber = (num: bigInt.BigInteger, base: number, chunkSize: number) => { |
no test coverage detected