ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  cutting off decimal number
Posted by Jozin on Jan-05-2011 21:38
Hi, Im using layer->setAggregateLabelFormat("{={value}/60}:{={value}%60|0.}"); like this,
I wish to display the number as time, hours,minutes, seconds. Ive already asked this in
other post, but Im trying to go around it. When I try to get minutes by this {={value}/60},
the value rounds itself, and therefore I get wrong results, I need to just cut off the decimal
number, is it possible?
Thanks
Josef

  Re: cutting off decimal number
Posted by Peter Kwan on Jan-06-2011 00:03
Hi Jozin,

If your data are always positive, the correct format is:

{=({value}-{value}%60)/60}:{={value}%60|0.}

If the minute part is always less than 60, you may also use {value|nn:ss}.

Hope this can help.

Regards
Peter Kwan

  Re: cutting off decimal number
Posted by Jozin on Jan-11-2011 19:26
Thank you  very much for quick answer.