Skip to Main Content
IBM Z Software


This portal is to open public enhancement requests against IBM Z Software products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Delivered
Workspace PL/I Compilers
Created by Guest
Created on Feb 25, 2016

Add round to even builtin for non DFP variables

IEEE arithmetic defines five rounding modes, described at

https://en.wikipedia.org/wiki/IEEE_floating_point#Rounding_rules

For DFP arithmetic these may already have been implemented, but for "nomal" fixed decimal arithmetic, they have to be user-implemented. It would be nice if at least one, "round-to-nearest, ties to even" could be added as a new builtin function.

Idea priority Medium
  • Guest
    Reply
    |
    Jan 31, 2017

    Delivered as part of APAR PI75582 / PTF UI44364

    The new ROUNDTOEVEN built-in function provides this support

    The ROUNDDEC built-in function has been renamed as ROUNDAWAYFROMZERO. This gives it a much more meaningful name since what it performs is mostly commonly known as round half away from zero.

    The ROUNDTOEVEN built-in function returns the value of x rounded at a digit specified by n following the rounding rule of round half to even.

    It is the same as the ROUNDAWAYFROMZERO function except that while that function rounds ties away from zero (so 24.5 gets rounded to 25 and -24.5 gets rounded to -25), the ROUNDTOEVEN function rounds ties to the nearest even value (so both 23.5 and 24.5 get rounded to 24 and both -23.5 and -24.5 get rounded to -24 )

  • Guest
    Reply
    |
    May 16, 2016

    we should do this for DFP as well

  • Guest
    Reply
    |
    Mar 9, 2016

    Under consideration