Simple syntax problem

Knox, Dave (Dallas CSC Citrix) knoxda01@unisourcelink.com
Tue, 18 Apr 2000 12:40:26 -0400


You need to also look at scaling options of the element. It may be defined
as float, but stored as integer.

An easy way to find out how it's stored is report the element with your own
picture and scaling options, and that should tell you how to reference it.
e.g.

report item-x pic "^^^^^^^^^^" output scale 4 significance 10

if you see "0000002500" then you should select using 0.25
if you see "0000250000" then you should select using 25

BUT...

FLOAT items can also get a bit snarky (speaking for MPE anyway), in that it
may be stored as .2499999999. And hence fail your test

With float it is a VERY good idea to ROUND the item before you test it with
(round(item-x,2)). The above test should also show this, but you should
probably add another 10 more "^" to the picture output scale for it to do so
(the item is rounded for ouput, but I don't believe when tested against.

Regards
Dave

> ----------
> From: 	Enid Gentle[SMTP:GentleE@rsc.org]
> Sent: 	Tuesday, April 18, 2000 11:23 AM
> To: 	powerh-l@lists.swau.edu
> Subject: 	Simple syntax problem
> 
> Help!  all you Powerhouse experts:
> 
> This is a query from a trainee sitting here all alone and unable to find
> the
> answer in the manuals.
> Using a basic Quiz report:
> If an element is defined as a float 4, and is defined in the Powerhouse
> dictionary as being a 2-decimal point percentage, complete with % sign,
> how
> do I test it for values?
> I need to extract all items with a value of 25.00%  and I have tried all
> manner of permutations of testing for this value.  Can anyone help me,
> please?  I have run out of initiative and permutations.
> I know it is just a simple syntax thing, but I cannot seem to get it
> right.
> 
> Enid
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> =
> Subscribe: "subscribe powerh-l" in message body to
> majordomo@lists.swau.edu
> Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
> This list is closed, thus to post to the list, you must be a subscriber.
> 
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.