Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Please help - Decimal value to hexadecimal ??

  1. #1

    Default Please help - Decimal value to hexadecimal ??

    hello !!

    i need to convert Decimal value to hexadecimal... If anyone tried this Could you please let me know How I can do this

    Thanks

  2. #2
    DEinspanjer Guest

    Default

    Use a JavaScript step or a Janino step.

  3. #3

    Default

    Hi .. I am sorry if I was not clear..

    I am kind of novice to Java scripting and language ...

    can you please let me know the function which does this conversion from decimal/string to hexadecimal


    thanks

  4. #4

    Default

    Look under

    Hex to Integer:
    \samples\transformationsJavaScript - Hex to Integer conversion.ktr

    For a Integer to Hex I tried:
    var nummerke = Packages.java.lang.Integer.toHexString( 0x10000 | VariableInteger).substring(1).toUpperCase();

    Hope this helps

  5. #5

    Default

    Thanks this works !!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.