Olivier Posted February 21, 2014 Share Posted February 21, 2014 Hi friends, I need to create a rule to have the € symbol as an exposant and the cents just below, like in the screenshot attached. http://forums.printable.com/attachment.php?attachmentid=980&stc=1&d=1392991025 How can we do that using a rule in FP 9.1 ? Thanks for your help ! Olivier from France. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted February 21, 2014 Share Posted February 21, 2014 There are a few ways you can accomplish this. Probably the simplest is to use multiple text frames. The Euro symbol can be in a frame by itself. Then the numbers can either be in one or two frames. To put them in a single frame, you can do something like this: var price = StringToNumber(Field("price")); return '<z newsize=20>' + Math.floor(price) + '<z newsize=10>' + String(Round(price - Math.floor(price), 2)).replace(/^0/,'');And right-align that in the frame. You will need to modify the numbers in the <z newsize=***> tags to get the point sizes you want. P.S. There's no such word "exposant" in English. I think the equivalent English word is "exponent," although in typographic terms, I would call this superscript. Quote Link to comment Share on other sites More sharing options...
Olivier Posted February 23, 2014 Author Share Posted February 23, 2014 Thank you Dan, as always your answers are very clear. Best regards, Olivier Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.