Skip to main content
September 17, 2013
Question

Fix the decimal point position to the PMReal in idesign cs3

  • September 17, 2013
  • 1 reply
  • 457 views

Hi,

     I have got the width and height of selected Rectangle Frame. I need to fix the decimal point(3 point) position to the receiving width and height PMReal values. How to do this. Pls explain with code snippet.

Regards,

saravanan.

This topic has been closed for replies.

1 reply

Participant
September 17, 2013

If you wand to convert it to a string with a fixed precision, just use the AppendNumber or AsNumber methods from the PMString class.

PMString str;

PMReal n = 54.06;

str.AsNumber(n, 3, kFalse, kFalse);

str.Append(" + 45 = ");

str.AppendNumber(n + 45, 3, kFalse, kFalse);

CAlert::InformationAlert(str);

September 17, 2013

Hi,

     Thanks this is helpful for me. If you have any idea to implement mysql database

with indesign without using a third party plugins. Any sdk samples are present in the indesign sdk.

Thanks,

saravanan.