Closed (won't fix)
Project:
Radioactivity
Version:
6.x-1.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2009 at 06:04 UTC
Updated:
14 Aug 2009 at 21:15 UTC
Hi there,
How is it possible to round the output of the radioactivity value to say 2 d.p? I would like people to be able to sort views by energy value without seeing values such as 1.9015242392154. I'm quite sure it shouldn't be hard, but I'm new to Drupal coding so I'm uncertain where/how to add this functionality.
Any help would be appreciated,
Wayne
Comments
Comment #1
skiminki commentedI think this is views-specific issue so try views documentation. If this fails, you can theme your view to make whatever display formatting you desire. You can also try implementing a views display handler for radioactivity.
Anyway, the energy values are not usually displayed directly to users, as they're just some values used in comparison. The display energy value feature is targeted for admins who can use it to fine-tune radioactivity profile parameters.
Comment #2
watbe commentedOk thanks for that, I'll take a look. Meanwhile, if anyone knows a quick solution, that'll be great. =)
Thanks for your help!
Comment #3
skiminki commentedResolving this as won't fix. Please see the comment #1 for reasoning.
Comment #4
sjtout commentedYou can use the Views option to 'Trim the length of this field' and set the number of characters you want the field to display; it includes a 'trim at word boundary' option that, when turned on, will clip off anything after a decimal (though the decimal itself is still visible).