• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Printing in engineering notation

Stats

  • Locked Locked
  • Replies 11
  • Subscribers 143
  • Views 18907
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Printing in engineering notation

swdesigner
swdesigner over 13 years ago

In IC6 (maybe even in IC5) the ADE outputs are displayed in engineering notation with symbols - that is, 10e-6 is 10u, 10e-3 is 10m, etc.

This is convenient.

Is there any way to print numbers this way using printf or some other function in skill?

Note, I don't want to print 10e-3 as 10e-3, I want it to come out as 10m.

Thanks!

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    aelSuffixNotation() is probably what you're after. So for example:

    aelSuffixNotation(10e-3) => "10m"

    You could also use:

    cdfFormatFloatString("10e-3" "m") => "10m"

    assuming you've got the number in a string in the first place, and you know which suffix you want to use.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    aelSuffixNotation() is probably what you're after. So for example:

    aelSuffixNotation(10e-3) => "10m"

    You could also use:

    cdfFormatFloatString("10e-3" "m") => "10m"

    assuming you've got the number in a string in the first place, and you know which suffix you want to use.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information