Rounding a variable, can this be done.

Hi,
I'm trying to round a variable. Howerver, nothing appears!
I know that numbers can be rounded, but I can't get the bit below to work....
<?xdoxslt:set_variable($_XDOCTX, 'diff', number(A.OXF_UNRST_VALUE_YTD) - number(A.OXF_USTRCT_EXP_AMT_YTD))?><?xdoxslt:set_variable($_XDOCTX, 'testa',(number(xdoxslt:get_variable($_XDOCTX, 'diff')) div number(A.OXF_UNRST_VALUE_YTD))*100)?>
<?xdofx:round(number(xdoxslt:get_variable($_XDOCTX, 'testa')),0)?>
Any suggestions most appreciated.

Hi,
Thanks for taking the time to reply. I did wonder if the namespace was correct, but alas did not try changing it from xdofx.
The XDOUserGuide.pdf has the reference below:
round <?xdofx:round ( number [, integer ] )?>
ROUND returns number rounded to integer places right of the decimal point. If integer is omitted, then number is rounded to 0 places. integer can be negative to round off digits left of the decimal point. integer must be an integer.
Cheers,
Steve.
Edited by: user7137712 on 01-Dec-2011 07:48
Edited by: user7137712 on 01-Dec-2011 07:48

Similar Messages

  • I am trying to extend my airport extreme signal to another airport extreme can this be done? I have tried several time using the automated set up but it keeps failing... What am I doing wrong?

    I am trying to extend my airport extreme signal to another airport extreme can this be done? I have tried several time using the automated set up but it keeps failing... I have selected every possible security/password encryption level... What am I doing wrong? If it os possible where can I find step by step instructions? Please & Thank you!

    The challenge with the older round AirPort Extremes are that they are "g" wireless devices.
    When you configure them for WDS, the speed on the wireless network is cut in half...and probably will not have the bandwidth required to stream video reliably from either AirPort Extreme since both are affected by the WDS setup.
    There is not an "automated" setup for WDS. You have to do this manually on both AirPort Extremes. Unfortunately, it is not an easy configuration and it's easy to make a mistake and hard to recover without starting all over again.
    Apple's instructions for WDS are here if you want to give it a try.
    http://support.apple.com/kb/HT4262
    It is possible that it might work. Keep us posted on your progress
    Adding a single AirPort Express will unfortunately not help. You have to have "n" wireless devices at all router points.

  • I want to Connect my Mac Mini as a Slave to a Mac pro Server while at the same time using the Mac mini's thunderbolt ports peripherals ( ie monitor, Sound Card, Hard drives) Creating a poor man's new mac Pro. Can this be Done?

    I want to Connect my Mac Mini as a Slave to a Mac pro Server while at the same time using the Mac mini's thunderbolt ports peripherals ( ie monitor, Sound Card, Hard drives) Creating a poor man's new mac Pro. Can this be Done?

    Well, I really would love the new unreleased mac pro however , I'm not sure of the expected cost , Everyone speculates from $3,000 to $8,000, in which I may have to wait a while to purchase.
    To the point .... I want fully functional thunderbolt ports to be on the current mac pro's .... wonder if anyone had workarounds yet?...  or could I chain the the current mac pro to a mac mini to make that happen?

  • I AM TRYING TO FORWARD TX MESSAGES TO MY COMPUTER, CAN THIS BE DONE?

    I AM TRYING TO FORWARD TX MESSAGES TO MY COMPUTER, CAN THIS BE DONE?

    You should be able to forward them to your e-mail, or you could use a text backup app from Google Play that will backup your texts and e-mail them to you (SMS Backup and Restore is an example).

  • In Mail with Snow Leopard you could number your e-mails. Can this be done with Lion?

    In Mail with Snow Leopard you could number your e-mails. Can this be done with Lion?

    If you're referring to desktop icons, right click on the desktop > Show view options > check "show item information".

  • How do I set up two separate iTunes accounts on one MacBook Pro in order to manage the wife's iPhone and my iPhone? Can this be done?

    How do I set up two separate iTunes accounts on one MacBook Pro in order to manage the wife's iPhone and my iPhone (with separate info on each of course) ? Can this be done? A little step by step would be greatly appreciated; just short step by step though, I can follow fairly well.
    Kindest Regards,
    Phil T.

    You would each need to use your own user account on the Mac, you can do this at system preferences > users & groups.

  • I would like to transfer the balance from one Apple ID to another how can this be done??

    I want to transfer the account ballance from my account to my son's. I unintentionally redeemed one of his gift cards to my account. how can this be done?

    Sorry, but balances can't be transferred from one iTunes Store account to another. You'll either have to make his purchases through your account, or buy another prepaid card and redeem that in his account.
    BTW, for future questions, this forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help if you ask in the general iTunes forums.
    Regards.

  • I want to shoot a movie on my iPhone and edit it on my iPad using the iMovie app. How can this be done via iTunes on my computer?

    I want to shoot a movie on my iPhone and edit it on my iPad using the iMovie app. How can this be done via iTunes on my computer?

    You can't drag video into the filesharing pane of iTunes, you can only transfer projects.
    Videos need to come in via the photos tab of iTunes.
    The easiest way to get videos from the iPhone to the iPad is via the project export import.
    Projects can be exported from the iPhone, then imported to the iPad like this:
    iPhone Send a project or trailer to iTunes
    If the marquee screen isn’t showing, tap the My Projects button .
    Scroll to center the project or trailer you want to share.
    Tap the Share button at the bottom of the screen, and then tap iTunes; tap OK when iMovie indicates that export is complete.
    Connect your device to your computer, and then open iTunes on your computer.After a moment, your device appears in iTunes, below Devices on the left.
    Select the device, and then click Apps at the top of the iTunes window.
    Select iMovie in the Apps list below File Sharing. (You may need to scroll to see it.)
    In the iMovie Documents pane, select the file you just shared, and then click the “Save to” button; save the file to your computer in a place where you can find it easily.You can also save the file by dragging it to the desired location on your computer.
    Disconnect the device from your computer.
    iPad Import a project or trailer from iTunes
    Connect your device to your computer, and open iTunes on your computer.After a moment, your device appears in iTunes, below Devices on the left.
    Select the device, and click Apps at the top of the iTunes window.
    Select iMovie in the Apps list below File Sharing. (You may need to scroll to see it.)
    Click Add below the iMovie Documents pane; in the window that appears, navigate to the file you want to add.
    Select the file, and then click Open to copy the file to your device.The file appears in the iMovie Documents pane when copying is complete.
    Open iMovie on your device; if the marquee screen isn’t showing, tap the My Projects button in the upper-left corner above the viewer.
    Tap the Import button at the bottom of the screen, and then tap the name of the project you want to import.When the import is complete, the project opens and can be edited like any other project.

  • I want to have 2 seperate libraries with content in different locations, can this be done?

    Hi there, I have 2 uses for itunes, one is for my mobile DJ business and for this I store all of my music on a 2TB external firewire 800 HDD I use Traktor Pro to mix, but find itunes very good for creating playlists.  I would however like to be able to store seperate content on my internal drive in a different library for personal use as a great deal of the stuff in my DJ collection I personally have no time for, and do not want the inconvenience of needing to connect my external HDD to be able to listen to my own collection.  I have a SSD installed and have tried depressing the CMD button during startup of the application although no option for creating a new library presents its self, it may be that the start up is too quick for me to be able out this.  Any ideas guys? Many thanks.

    Trying2loveMac wrote:
    Can this be done? If so, how?
    there may be other (better) ways out there but all i can think of is this:
    1) make one iTunes library the main one and "consolidate" files that aren't in it, but in the other computer's libraries, to it.
    you can use home sharing for this but home sharing won't copy ratings, playcounts, and original "date added". a 3rd party tool such as PowerTunes would be very useful if those details are important to you.
    2) once the "main" library is created, copy the entire iTunes folder (not just the iTunes music or media folder) to the media server, launch iTunes while holding the option(⌥) key, click on choose library when prompted, and select the iTunes folder you copied to the new location.
    3) repeat with the other Macs.
    with a setup such as this, be aware that only one iTunes at a time can access the library. if your intention is to enable multiple machines to access the library simultaneously, you will probably have look into a NAS with a built-in iTunes server.

  • I need to read data from a text file and display it in a datagrid.how can this be done..please help

    hey ppl
    i have a datagrid in my form.i need to read input(fields..sort of a database) from a text file and display its contents in the datagrid.
    how can this  be done.. and also after every few seconds reading event should be re executed.. and that the contents of the datagrid will keep changing as per the changes in the file...
    please help as this is urgent and important.. if possible please provide me with an example code as i am completely new to flex... 
    thanks.....  

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I have just got a new computer and I want to transfer Adobe Acrobat to my new one can this be done ?

    I have just got a new computer and I want to transfer Adobe Acrobat to my new one can this be done ?

    Hi Ianpce,
    You need to download and install Adobe Acrobat on the new machine to use it.
    You can use the same subscription or the serial number to activate the product.
    Thanks

  • Have just migrated from the world of PC's. and I had my set up so that when I typed a new sentence it started with a capital with out me pressing shift. also, i could set up words to self fill like ur would auto correct to your. can this be done with mac

    Have just migrated from the world of PC's. and I had my mail text typing set up so that when I started  a new sentence after a full stop  it started with a capital with out me pressing shift. also, i could set up words to self fill like ur would auto correct to your. can this be done with mac

    I don't know about the first letter cap but the spelling is simple. Edit - Spelling and Grammar - Select While Typing and Correct Spelling Automatically.
    I'd also STRONGLY recommend that you bookmark and use:
    Mac 101
    Switch 101
    Find Out How Video tutorials
    List of Useful URLs for switchers
    Welcome to the Light side.

  • I have a Power Mac G4 (2004) and want to transfer all my files to a new MacBook Pro 15.4". Can this be done thru firewire cable or do I have to transfer to an external Firewire 800 hard drive first?

    I have a Power Mac G4 (2004) and want to transfer all my files to a new MacBook Pro 15.4". Can this be done thru firewire cable or do I have to transfer to an external Firewire 800 hard drive first?

    Do it with a Firewire cable (buy a 800/400 adapter if you need it) - the USB transfer takes a much longer time.
    Start up your old PowerMac G4 holding down the "T" key, for target disk mode.
    On your new MacBook Pro open "Migration Assistant" in your utilities folder.
    Connect the 2 computers by firewire cable and follow the prompts in Migration Assistant.

  • Adobe Bridge has been deleted and needs to be re-installed. How can this be done without reinstallin

    Adobe Bridge has been deleted and needs to be re-installed. How can this be done without reinstalling the entire CS5

    Hi RDMDanielM,
    Welcome to the Community!
    We cannot install Adobe Bridge as a Standalone product, you can just reinstall Photoshop and Bridge will be reinstalled with it. Go ahead and start uninstalling CS5 suite but choose Photoshop from the list and the same will be applicable while Installation.
    Thanks!
    Ankit

  • I have numbers on mac mini and need to email as an attachment  one sheet instead of the 30. Can this be done

    Can anyone help please. I have just downloads the numbers app. I have a very large document of which i need to send a separate sheet each week as an attachment via email. Can this be done?. Sadly, I am used to Neo and that was rather easy to do.   I could not find the answer for excell either!  Surely, saving each sheet separately is not the only answer. 

    File > Print
    set the print range "From "  = 1, "To" = 1 in the print dialog, then
    click the "PDF" button the bottom left and select "Mail PDF"
    If you must send a Numbers document, then I think I would copy the germane content into a new document and save as the current month (or week), then attach that document.

Maybe you are looking for