Jump to content
Software FX Community

Setting num of decimal places in scientific notation


User (Legacy)

Recommended Posts

I am trying to use scientific notation format for an Y or Y2 axis and 

specify the number of decimal places to show. This is how I am doing it...

VARIANT vFormat;

V_VT(&vFormat) = VT_I4;

V_I4(&vFormat) = AF_SCIENTIFIC;

pGraph->Axis->Item[AXIS_Y]->Format = vFormat;

pGraph->Axis->Item[AXIS_Y]->Decimals = 4;

This doesn't work as expected though. I get scientific notation numbers but

with 0 decimals. Is there another way to do this?

Thanks,

Diana

Link to comment
Share on other sites

Sorry, it works now. I was doing something to cancel out the decimal setting 

but didn't notice it until just now. Again, sorry to bother you with this.

Thanks,

Diana

"Diana Tetelman" <dtetelman@agi.com> wrote in message

news:t6K9C2krFHA.1724@webserver3.softwarefx.com...

>I am trying to use scientific notation format for an Y or Y2 axis and

>specify the number of decimal places to show. This is how I am doing it...

>

> VARIANT vFormat;

> V_VT(&vFormat) = VT_I4;

> V_I4(&vFormat) = AF_SCIENTIFIC;

> pGraph->Axis->Item[AXIS_Y]->Format = vFormat;

> pGraph->Axis->Item[AXIS_Y]->Decimals = 4;

>

> This doesn't work as expected though. I get scientific notation numbers

> but with 0 decimals. Is there another way to do this?

>

> Thanks,

> Diana

>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...