Switch from "x" to "*".
As previously discussed with Ryan.
This commit is contained in:
parent
f93a908911
commit
b8e47541bd
|
@ -318,7 +318,7 @@
|
|||
(string-append
|
||||
(cond [(string? format-exponent) format-exponent]
|
||||
[(= base 10) "e"]
|
||||
[else (format "x~s^" base)])
|
||||
[else (format "*~s^" base)])
|
||||
(if (negative? exponent) "-" "+")
|
||||
(%pad (number->string (abs exponent))
|
||||
#:pad-to 2
|
||||
|
|
|
@ -251,7 +251,7 @@
|
|||
"9.876e-01")
|
||||
|
||||
(tc (~r #:notation 'exponential 100 #:base 2)
|
||||
"1.1001x2^+06")
|
||||
"1.1001*2^+06")
|
||||
|
||||
(tc (~r #:notation 'exponential 1234 #:format-exponent "E")
|
||||
"1.234E+03")
|
||||
|
@ -271,7 +271,7 @@
|
|||
|
||||
(tc (~r 3735928559 #:base '(up 16) #:precision 6 #:notation 'exponential)
|
||||
;; note rounding!
|
||||
"D.EADBEFx16^+07")
|
||||
"D.EADBEF*16^+07")
|
||||
|
||||
(tc (~r 33.99508664763296 #:precision 1 #:min-width 5)
|
||||
" 34")
|
||||
|
|
Loading…
Reference in New Issue
Block a user