Skip to content
Notifications
Clear all

[Solved] Displaying B for billion, µ for micro

3 Posts
2 Users
0 Reactions
3,111 Views
Posts: 7
Customer
Topic starter
(@jessiesandoval)
Active Member
Joined: 4 years ago

The What's new in Analytica 6.0? page says that you can now configure the suffix number format to print B for billion and/or µ for millionth (instead of G and u). But you have do use typescript to do it. Can you show me the typescript command to set this? And could somebody put together a library with a UI for doing this?

2 Replies
Posts: 26
Moderator
(@drice)
Member
Joined: 4 years ago

On the wiki page for NumberFormat, with Release=6.0 selected at the top, it says that item 18 is «GigaOrMuSuffixChars» and specifies with to use using the characters B, G, u or µ. So to use µ for micro, from the Typescript window I did this:

Untitled>sys_defaultNumberFmt
Sys_DefaultNumberFmt = '2,D,4,2,0,0,4,0,$,0,"ABBREV",0'

Sys_DefaultNumberFmt>Sys_DefaultNumberFmt : 2,D,4,2,0,0,4,0,$,0,"ABBREV",0,,,,,,µ

I counted the commas to make sure I was setting item 18. On my keyboard (an international layout) I was able to type the µ by holding the right-Alt key and pressing m. I'm also able to type it by holding down either Alt key as I type +B5.  These input method may vary depending on which keyboard you use.

I tested on the sample result view for

if bernoulli(0.5) then Uniform(1µ,1m) else Uniform(1B,1T)

To set both B for billions and µ for millionths, the typescript would be:

Sys_DefaultNumberFmt : 2,D,4,2,0,0,4,0,$,0,"ABBREV",0,,,,,,Bµ

Reply
Posts: 26
Moderator
(@drice)
Member
Joined: 4 years ago

Here is a library with a GUI for configuring the suffix characters to use.

To use, select File / Add Module...  (or Add Library...) and embed. Then enter the library and select which suffix characters you prefer from the choices.

Reply
Share:

Download Free Analytica


    We hate spam as much as you. We won't share your email with third parties.
    The free edition of Analytica includes these key Analytica features:
    Free Analytica has no time limit. The only constraint is it won’t let you create more than 100 variables or other objects. But your model can be quite substantial since each variable can be a multidimensional array. It also lets you explore, change inputs, and run existing models of any size (excluding features unique to the Enterprise or Optimizer editions).