To convert value in seconds or decimal value to hr:min:sec

Hi There,
I got 2 keyfigures which have the same data in decimal and seconds format like 1492.000 or 1492. In the <b>query</b> I want to convert this to HR:MIN:SEC format.
Can anybody help me to convert to hr:min:sec format. what is the formula that can convert this?
Thanks alot
Anima

I checked SU01 and didn't see anything there to customize...
In my workstation, control panel / regional and languages settings / tab regional Options / customize; my time format is HH:mm:ss; the HH has to be in capital letter to display the time in 24 hour...
but this is strange anyway... are you reporting with web frontend or excel?

Similar Messages

  • HOW TO CONVERT DEGREES MINUTES SECONDS TO DECIMAL DEGREES IN HP 50G

    Equation: How to write and equation that includes SIN of 10 degrees 25 minutes 15 seconds to Decimal Degrees (10.4208 degrees. OR convert 10.4208 degrees back to 10 degrees 25 minutes 15 seconds.

    Hi,
    When using the Equation Writer, you can also find commands in the CAT menu ( red rightshift SYMB ) or you can manually type them in using alpha letters too.
    However, for the numeric equation solver, you can trick RPN mode into accepting HMS-> and ->HMS as follows:
    create a program:
    <<  `B=->HMS(ACOS(SIN(HMS->(A))))`  >>                     (note: you will have to enter the brackets manually)
    Note: ` is a slanted apostrophe, obtained by press and hold  Red RightShift ( ) and '  ( ).
    Save this program as e.g. 'EQ1'
    Open the numeric solver and for "Eq:" select CHOOS then select EQ1. It should show the program equation and variables A and B. You can enter data and solve for variables as normal.
    Best regards.
    EDIT: you can actually write this program directly in the editor of the Solver without first creating EQ1.
    Note: I do not work for HP, I just like playing with calculators :-)

  • Decimal format time value to convert into time (hr:min:sec)value in a graph

    I need to develop a graph in WAD, in BW7. In the graph the value must be showed as HR:MIN:SEC, which I cannot get it right.
    The keyfigure value  carries the duration(hr:min:sec) in decimal format.  In the query, I use this keyfigure for calculation. To get the time broadcasted for a week range. I get the total duration (say 507835.000). Now I need to convert this value back to hr:min:sec. I use the below formulas to get the hr, min, sec.
    D = 507835
    Val1 = D/3600
    Val2 = Frac(val1)
    Val3 = Val2 * 60
    Val4 = frac(Val3) * 60
    Hr = Val1 – Val2
    Min =  Val3 – frac(Val3)
    Sec =  Val4
    In another formula in the query I add Hr + Min/100 + Sec/10000 to get hr.minsec format.
    When I do an average on count of weeks,  this doesn’t round off correctly.
    I tried to also use the Data function TIME() which when the time is > 24 hrs changes the value.
    Lets say if it is 39:00:00, it shows value as 15:00:00 instead of keeping the value 39:00:00.
    When I used this value in the graph it did not show the HR:MIN:SEC values in the value axis instead  it showed 0.0, 0.1,….1.0. Bcoz of this the graph is blank.
    Can anybody help me to resolve this problem.
    Thanks alot
    Anima

    I checked SU01 and didn't see anything there to customize...
    In my workstation, control panel / regional and languages settings / tab regional Options / customize; my time format is HH:mm:ss; the HH has to be in capital letter to display the time in 24 hour...
    but this is strange anyway... are you reporting with web frontend or excel?

  • Need to convert values into coma separated

    Need to convert values into coma separated
    I have a string value that stores data like 'NYK,IND,SGP,GER'
    FOR EXAMPLE
    V_CITY_CODE = 'NYK,IND,SGP,GER'
    When I query
    select * from city where city_code = V_CITY_CODE;I get no rows, this is because V_CITY_CODE has all city code as single code.
    I need a function to search , and replace with ','.
    I tried using instr and replace but was unable to convert it.
    could some one pls assist me.
    thanks in advance
    Saz

    Looking for this?
    SQL> select * from emp
      2  /
         EMPNO     DEPTNO ENAME                                 SAL DOJ       JOB
             1          1 Karthick                               80 03-DEC-11
             2          1 Karthick_1                             90 23-NOV-11
             3          2 Ram                                    80 03-DEC-11
             4          2 Ram_1                                  90 23-NOV-11
    SQL> var v_ename varchar2(1000)
    SQL> exec :v_ename := 'Karthick,Karthick_1'
    PL/SQL procedure successfully completed.
    SQL> select *
      2    from emp
      3   where ename in (
      4                     select regexp_substr(val, '[^,]+', 1, level)
      5                        from (select :v_ename val from dual)
      6                    connect by level <= length(val) - length(replace(val, ','))+1
      7                  ) 
      8  /
         EMPNO     DEPTNO ENAME                                 SAL DOJ       JOB
             1          1 Karthick                               80 03-DEC-11
             2          1 Karthick_1                             90 23-NOV-11

  • Cannot convert value "......." to type

    I'm running the following script on Exchange 2010. The script reads 3 text files and then removes everyone from the Distribution Group / Universal Distribution Group  "Messages Delivery Restrictions - Accept Messages Only From" before adding
    a new list of users
    $People = gc C:\ps_scripts\Staff_Aliases.txt
    $UDGroups = gc C:\ps_scripts\Universal_Distribution_Groups.txt
    $DDGroups = gc C:\ps_scripts\Dynamic_Distribution_Groups.txt
    ForEach ($UDGroup in $UDGroups) {
       Set-DistributionGroup $UDGroup -AcceptMessagesOnlyFrom $null
       Set-DistributionGroup $UDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $UDGroup).AcceptMessagesOnlyFrom + $People)
    ForEach ($DDGroup in $DDGroups) {
       Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom $null
       Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $DDGroup).AcceptMessagesOnlyFrom + $People)
    and I'm getting the following error:
    Cannot convert value "a.abcd h.qwerty staff-abc staff.bcd" to type "Microsoft.Exchange.Data.MultiValuedProperty`1[Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter
    ]". Error: "Cannot convert value "" to type "Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter". Error: "Parameter values of type Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter can't
    be empty. Specify a value, and try again.
    Parameter name: identity""
        + CategoryInfo          : InvalidData: (:) [Set-DynamicDistributionGroup], ParameterBindin...mationException
        + FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-DynamicDistributionGroup
    I'm getting the content from three text files, the first contains the User Alias and the 2nd/3rd contain the Universal and Dynamic Distribution Groups.
    This is an exact copy and paste from the EMC screen and I know that the script should work but I can't see what I'm doing wrong
    Help or ideas please
    Darryn

    Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $DDGroup).AcceptMessagesOnlyFrom + $People)
    Look closely at this line.  Read the documentation to see how it is used.
    What you h ave typed makes no sense and I cannot understand what you want to do with this.
    Start here for a tutorial on how to use these CmdLets:
    http://blogs.msdn.com/b/ukeducloud/archive/2011/10/05/dynamic-distribution-groups-part-1.aspx
    http://blogs.technet.com/b/educloud/archive/2011/10/06/dynamic-distribution-groups-part-2.aspx
    ¯\_(ツ)_/¯

  • Java.sql.SQLException: Cannot convert value

    I have a database table - name is client. It has one field with TimeStamp Datatype.
    I am using mysql-3.23.51-win and j2sdk-1_4_0_01-windows-i586.
    create table client (
    MODIFIED timestamp(14)
    while I am doing select MODIFIED from client that time I am receiving 00000000000000.
    So It has 00000000000000 value in databse.
    Now I am getting this value using ResultSet. for that
    I have a one Client Object class name is GenericClient
    public class GenericClient {
    private java.util.Date _modified;
    public java.util.Date getModified() {
    return _modified;
    public void setModified(java.util.Date newVal) {
    this._modified = newVal;
    In my database processing class I am getting database value and set that value in setModified(java.util.Date newVal).
    like
    private Client decodeRow(ResultSet rs) throws SQLException {
    GenericClient obj = new GenericClient();
    obj.setModified(rs.getTimestamp(1));
    return obj;
    So at obj.setModified(rs.getTimestamp(1)); line I am received error message
    java.sql.SQLException: Cannot convert value '00000000000000' from column 1 to TIMESTAMP.
    Please guide me why I am receiving the above error.
    Thanks
    Amit

    Please find some more information from my side
    1) I am passing Timestamp Object
    2) I am using PreparedStatement
    3) code
    Table : client
    create table client (
         MODIFIED timestamp(14)
    );Bean Class
    public class GenericClient {
         private java.util.Date _modified;
         public java.util.Date getModified() {
              return _modified;
         public void setModified(java.util.Date newVal) {
              this._modified = newVal;
    }Method - which is fired error
    private Client decodeRow(ResultSet rs) throws SQLException {
         GenericClient obj = new GenericClient();
         obj.setModified(rs.getTimestamp(1));
         return obj;
    }3) Error Stack
    ==========
    java.sql.SQLException: Cannot convert value '00000000000000' from column 1 to TIMESTAMP.
            at com.mysql.jdbc.ResultSet.getTimestampFromString(ResultSet.java:5538)
            at com.mysql.jdbc.ResultSet.getTimestampInternal(ResultSet.java:5566)
            at com.mysql.jdbc.ResultSet.getTimestamp(ResultSet.java:5219)
            at com.ksea.manager.ClientManager.decodeRow(ClientManager.java:463)
            at com.ksea.manager.ClientManager.loadByWhere(ClientManager.java:266)
            at com.ksea.manager.ClientManager.loadByWhere(ClientManager.java:221)
            at com.ksea.manager.ClientManager.loadByWhere(ClientManager.java:203)
            at com.ksea.manager.ClientManager.loadByUsername(ClientManager.java:53)
            at com.ksea.nt.DBSynch.synchEmployees(DBSynch.java:83)
            at com.ksea.nt.DBSynch.synchAll(DBSynch.java:35)
            at com.ksea.nt.DBSynch.main(DBSynch.java:168)4) db Info
    =======
    I am using mysql-3.23.51-win and j2sdk-1_4_0_01-windows-i586.

  • Convert value during a join statement

    Hi folks,
    Is there a way to convert value of a table field during a select statement? I have a sql statement that doesn't work because a field has zero characters prefix.
    SELECT EBANBANFN EBANBNFPO EBANSTATU EBANBSART EBANMENGE EBANLFDAT EKKOAEDAT EKKOEBELN EKKO~LIFNR
          INTO TABLE GT_RFQ_DATA
          FROM EBAN JOIN EKKO ON EKKOSUBMI = EBANBANFN
    EBANBANFN = '0003006807' and EKKOSUBMI = '3006807'
    Is it possible to do a join with that condition? Will reward points.
    Note: I know how to get those data without a join, so I will not give out reward points for those advices.
    Thanks for all of your helps.

    Try using the fucntion module CONVERSION_EXIT_ALPHA_INPUT to pad with leading Zeros
    if you want to convert the value of
    EKKOSUBMI = '3006807' to EKKOSUBMI = '0003006807'
    or if you want to remove leading zeros
    use CONVERSION_EXIT_ALPHA_OUTPUT function module.
    Data: v_submi like ekko-submi.
    v_submi = '3006807'
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
            INPUT  = v_submi
        IMPORTING
            OUTPUT = v_submi
        EXCEPTIONS
             OTHERS = 1.
    SELECT EBANBANFN EBANBNFPO EBANSTATU EBANBSART EBANMENGE EBANLFDAT EKKOAEDAT EKKOEBELN EKKO~LIFNR
    INTO TABLE GT_RFQ_DATA
    FROM EBAN JOIN EKKO ON EKKOSUBMI = EBANBANFN
    EBANBANFN = '0003006807' and EKKOSUBMI = v_submi

  • SOS: XAML binding Error: Converter failed to convert value of type '...' to to type '...'

    Hi, I'm working on a small Windows store App project using C# + XAML, and encountered a really weird problem with data binding in XAML. The error message is:
    Error: Converter failed to convert value of type 'Neptune.MyMatch, SkyNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' to type
    'ProgressableBase'; BindingExpression: Path='' DataItem='Neptune.MyMatch, SkyNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; target element is 'MyControls.ProgressableViewControl' (Name='root'); target property is 'Progressable'
    (type 'ProgressableBase').
    Error: Converter failed to convert value of type 'Neptune.MyMatch, SkyNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' to type
    'IMatchWrapper'; BindingExpression: Path='' DataItem='Neptune.MyMatch, SkyNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; target element is 'MyControls.MatchScoreControl' (Name='root'); target property is 'Match' (type 'IMatchWrapper').
    the XAML code snippet involved is:
    <local:MatchScoreControl Match="{Binding Converter={StaticResource TestConverter}}" />
    here:
    1) The type of the 'Match' property of 'MatchScoreControl' is 'IMatchWrapper', the type of the DataContext is 'MyMatch';
    2) 'MyMatch' is derived from 'ProgressableBase' and implemented
    'IMatchWrapper';
    3) below is the definition of 'MatchScoreControl' and its dependency property 'Match':
    public sealed partial class MatchScoreControl : UserControl
    public IMatchWrapper Match
    get { return (IMatchWrapper)GetValue(MatchProperty); }
    set { SetValue(MatchProperty, value); }
    public static readonly DependencyProperty MatchProperty =
    DependencyProperty.Register("Match", typeof(IMatchWrapper), typeof(MatchScoreControl), new PropertyMetadata(null, OnMatchPropertyChanged));
    private static void OnMatchPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    // this line will never get called
    Debug.WriteLine(e.NewValue.GetType().FullName);
    } //more code...
    4) TestConverter is a dummy value converter(IValueConverter) which does nothing just to make sure the binding object and target type is as expected:
    public sealed class TestConverter : IValueConverter
    public object Convert(object value, Type targetType, object parameter, string language)
    if (targetType != typeof(IMatchWrapper))
    throw new NotImplementedException("Error: targetType is not IMatchWrapper.....");
    if (!(value is IMatchWrapper))
    throw new NotImplementedException("Error: value is not IMatchWrapper...");
    return (IMatchWrapper)value;
    public object ConvertBack(object value, Type targetType, object parameter, string language)
    throw new NotImplementedException();
    When I run the app, none of the two exceptions in the TestConverter.Convert() is thrown, which is right and as expected. But the out window keeps throwing the error message as above. This is pretty weird!
    I've tried adding a parameterless constructor to the class 'MyMatch', but it doesn't work.
    Any suggestion would be appreciated!

    Good to know you have the solution and thanks for sharing the experience.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error in running a function to convert coordinates in degrees to decimal for EXCEL VBA

    For your information, I have 3 cross-posts regarding this question - and all I can said there is still no firm solution regarding this error.
    1) http://stackoverflow.com/questions/27634586/error-in-running-a-function-to-convert-coordinates-in-degrees-to-decimal-for-exc/27637367#27637367
    2) http://www.mrexcel.com/forum/excel-questions/826099-error-running-function-convert-coordinates-degrees-decimal-excel-visual-basic-applications.html#post4030377 
    3) http://www.excelguru.ca/forums/showthread.php?3909-Error-in-running-a-function-to-convert-coordinates-in-degrees-to-decimal-for-EXCEL-VB&p=16507#post16507
    and the story of the error is as below:
    Currently I am working on VBA excel to create a widget to verify coordinates whether it lies under the radius of ANOTHER predefined and pre-specified sets of coordinates.
    In the module, I want to convert the coordinates from degrees to decimal before doing the calculation - as the formula of the calculation only allow the decimal form of coordinates.
    However, each and every time I want to run the macros this error (Run-time error '5', invalid procedure call or argument) will appear. Then, the debug button will bring me to below line of coding:
    degrees = Val(Left(Degree_Deg, InStr(1, Degree_Deg, "°") - 1))
    For your information, the full function is as below:
    Function Convert_Decimal(Degree_Deg As String) As Double
    'source: http://support.microsoft.com/kb/213449
    Dim degrees As Double
    Dim minutes As Double
    Dim seconds As Double
    Degree_Deg = Replace(Degree_Deg, "~", "°")
    degrees = Val(Left(Degree_Deg, InStr(1, Degree_Deg, "°") - 1))
    minutes = Val(Mid(Degree_Deg, InStr(1, Degree_Deg, "°") + 2, _
    InStr(1, Degree_Deg, "'") - InStr(1, Degree_Deg, "°") - 2)) / 60
    seconds = Val(Mid(Degree_Deg, InStr(1, Degree_Deg, "'") + _
    2, Len(Degree_Deg) - InStr(1, Degree_Deg, "'") - 2)) / 3600
    Convert_Decimal = degrees + minutes + seconds
    End Function
    Thank you.
    Your kind assistance and attention in this matter are highly appreciated.
    Regards,
    Nina.

    You didn't give an example of your input string but try the following
    Sub test()
    Dim s As String
    s = "180° 30' 30.5""""" ' double quote for seconds
    Debug.Print Deg2Dec(s) ' 180.508472222222
    End Sub
    Function Deg2Dec(sAngle As String) As Double
    Dim mid1 As Long
    Dim mid2 As Long
    Dim degrees As Long
    Dim minutes As Long
    Dim seconds As Double ' or Long if only integer seconds
    sAngle = Replace(sAngle, " ", "")
    mid1 = InStr(sAngle, "°")
    mid2 = InStr(sAngle, "'")
    degrees = CLng(Left$(sAngle, mid1 - 1))
    minutes = CLng(Mid$(sAngle, mid1 + 1, mid2 - mid1 - 1))
    seconds = Val(Mid$(sAngle, mid2 + 1, 10)) ' change 10 to 2 if only integer seconds
    Deg2Dec = degrees + minutes / 60 + seconds / 3600
    End Function
    As written the function assumes values for each of deg/min/sec are included with unit indicators as given. Adapt for your needs.
    In passing, for any work with trig functions you will probably need to convert the degrees to radians.

  • Read a txt file, display a table of values, select a value to set min value for DAQMX

    Hello everyone, I am having trouble with the following data importing. I want to do the following:
    Open a txt file, have it be imported as a table. Allow the user in the GUI to select a value on the 2nd column, set that value as either min or max for a daqmx analog output. I'll attach the .txt file being used. I can add the code but I was basically using the read from text.vi example with no luck.
    Attachments:
    090414-200-800-16x.txt ‏1 KB

    Thank you all, I have set up this input but I have a couple more questions. First now that I have the ability to have a mouse click to set a value, is it possible to have two events, such that the first sets a certain value and the second retains a different one?
    In addition (im not sure if this would be ok to post here but for the sake of clarity and decluttering the forum I shall post it here) is it possible to switch from a constant voltage mode (in DAQMX analog output) to a waveform mode ( attacthed the binary waveform) all while maintaining a constant min value (untill updated from the table by user, which is also attached).
    I have attachted a vi (Labview version 8.2) that I threw together today.
    Thank you all,
    DB
    Attachments:
    calib.csv ‏3 KB
    Example.vi ‏157 KB

  • MINUTES:SECONDS to decimal time, (MINUTES.SECONDS)

    I want to be able to convert "colon time" (28:45) minutes:seconds to "decimal time" (28.75).
    I have resorted to a work-around: put minutes in one column, seconds in a second column, convert the minutes to seconds, add the two seconds columns, divide by 60 entered in another column. It works, but for what I am doing it takes several columns of formulas.
    I only have 08 at home. I am at an APPLE STORE where I can do this easily using iWork 09.
    Is there an easier solution for this using 08?
    Thank you,
    new2SS
    (New To Spread Sheets)

    Jerrold Green1, Jerry:
    Most excellent posts by you, thank you. Your formula was quite clear and it worked. I formatted an entry column as TEXT, and the formula column (to the right) as NUMBER (to two decimal-places, which is what I need).
    I found the formulas: LEFT, LEN, and RIGHT under TEXT, as you said it would be. I have yet to figure out the(math—logic) of the formula!
    I could not find this formula in APPLE's NUMBERS08 User Guide. Nor could I find a direction for converting MM:SS to decimal minute(s) in the 09 User Guide.
    I had printed the 08 guide right after I had bought the software and had downloaded the 09 guide to study as a preview to buying it.
    I do have an "issue" with the software of NUMBERS 08.
    Using 08, when formatting a column as Date and Time, one has three options: Date and Time, Time only, or Date only.
    But when I formated the column for Time only, a date might appear when I clicked on a cell in that column.
    To me, it is like being asked if I want cheese on my Big Mac, I say NO, and I receive the Big Mac with cheese! Why ask, sif you don't listen?
    So, if anyone knows what the reason for this (the NUMBERS 08—not cheese on my BIg Mac!), please tell.
    Thanks.
    new2SS

  • SSAS Tabular DAX- Need to get MAX value of the MIN (top)hierarchy level row

    EDIT:
    I got closer to resolving the issue using MAX. 
    However, If I remove the department hierarchy and just place on the MAX measure I get the single largest value out of all departments. 
    It would be ideal if the measure could still SUM the "top level" values across everything in the system if the hierarchy is not placed on the rows grouping.
    So it returns the largest value for a given department, but if the department hierarchy isn't present I need it to return a SUM of all the level 1 values for all departments...
    Basically return MAX value from the MIN L1ID's DeptLevel value, but I can't seem to construct that DAX query.  So if DepartmentID hierarchy is on display it gets MAX per row, but if that is removed it dips into MAX GoalValue for each L1ID grouping with
    the MIN DeptLevel.
    /EDIT
    I have a rather odd data table I'm bringing into a SSAS Tabular model.
    Instead of having all data at each child level and then it adding up to a grand total in the parent, it has a grand total predefined at each child level.
    I just need this tool to display the raw data if at all possible instead of trying to aggregate everything. Filter on active level, ignore child levels.
    Is there a way to do that?
    Example:
    SalesGoalsByDepartmentLevel:
    Level1 (top level) = 5,000
    Level2( lower level) = 0
    Level3(lower still) = 500
    Level 4(lowest) = 4,250
    So note that adding up all the child levels is still $250 shy of the top 5,000.
    IT is just an odd business rule, basically each level is expected to meet that goal or exceed it, the top level goal is 5,000 but management doesn't care where that last 250 comes from, they do are that each defined level is met.
    These levels are in a hierarchy so if I view the top level of the hierarchy it adds up to 4250+500+5000=9750 when I just want to see 5,000 at the top level and the details when they drill down.
    I added a filter to just filter to the top level, but then when I drill down of course those lower levels are blank.
    Is there a way to filter on the current displayed level without aggregating all child levels?
    Thanks!

    You might want to take a look at the Parent-Child Hierarchies pattern here:
    http://www.daxpatterns.com/parent-child-hierarchies/
    You might write DAX code to check what is the "current" level (see BrowseDepth measure in the sample file you can download) and depending on its level, se the filter to blank to all the levels below, so you don't aggregate "children".
    Just an idea, I'm not sure if it corresponds to your requirement and I don't have time to make more tests.
    I hope it will be helpful.
    Marco Russo (Blog,
    Twitter,
    LinkedIn) - sqlbi.com:
    Articles, Videos,
    Tools, Consultancy,
    Training
    Format with DAX Formatter and design with
    DAX Patterns. Learn
    Power Pivot and SSAS Tabular.

  • How to convert numeric data to binary decimal in java

    How to convert numeric data to binary decimal in java Pleas egive me code example

    There is no numeric data. It's all binary. If you're talking about Strings, look at the Integer class.

  • Convert xsd:double to xsd:decimal

    Hi,
    I have an incoming field which is xsd:double and I need to convert the field into xsd:decimal
    For example:
    Incoming field - 5.13964E11
    Outgoing field - 513964000.00
    Any ideas how to do this ??
    Thanks
    Colin.

    Hi Colin,
    you can create a target data type in which you can take outgoing field as string variable.....
    then in msg mapping, make a small UDF in JAVA.......take your input field to it....
    in UDF, cast the input to double..........then convert it to decimal.....then cast it back to string.......then output this string.......
    then take output of UDF to target........so you will get outgoing field in decimal format as string............
    Then you can process your target XML in your target system.
    Thanks,
    Rajeev Gupta
    Message was edited by:
            RAJEEV GUPTA

  • Is it possible to convert a float to two decimal places

    Can anyone help me to convert a float to two decimal places
    float f=16;
    System.out.println(f);
    It will print 16.0
    But I want to get printed as 16.00

    "convert" no, as no conversion is needed, obviously. Format the output, yes. Read the API for String and its printf method.

Maybe you are looking for