Loading ...
Sorry, an error occurred while loading the content.

Re: [pcgen] Output sheet Question

Expand Messages
  • boomer70
    ... Hi Joe, ... If that doesn t work I would try ... -Aaron ... Aaron Divinsky PCGen Data Chimp, Code Chimp, Doc Gibbon
    Message 1 of 2 , Oct 10, 2007
    • 0 Attachment
      --- joefrazierjr <jfrazierjr@...> wrote:

      > I am working on a dataset that will need it's own
      > output sheet and
      > have a question on formatting.
      >
      > Basically, I have a custom variable to track
      > casterlevel, which can be
      > either a int or a float (will always be a x.5). Is
      > it possible to
      > format it in a way so that it will show in the OS
      > as:
      >
      > 1
      > 1.5
      > 2
      > 2.5
      >
      > ie, only show the decimal place if needed. I
      > assume I would need to
      > use IIF in some way, but cannot think of how to do
      > this off the top of
      > my head.
      >
      > Joe
      >
      >
      Hi Joe,

      This is totally untested but you can try this:

      |IIF(MyVar-0.5:0)|
      |VAR.MyVar|
      |ELSE|
      |VAR.MyVar.INTVAL|
      |ENDIF|

      If that doesn't work I would try
      |IIF((floor(MyVar)-MyVar):0)|
      |VAR.MyVar.INTVAL|
      |ELSE|
      |VAR.MyVar|
      |ENDIF|

      -Aaron

      ----------------
      Aaron Divinsky
      PCGen Data Chimp, Code Chimp, Doc Gibbon



      ____________________________________________________________________________________
      Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
      http://answers.yahoo.com/dir/?link=list&sid=396545469
    Your message has been successfully submitted and would be delivered to recipients shortly.