---
title: "db2 round 不完整实现"
author: "suifeng"
date: "2009-09-04T15:10:29Z"
tags: []
slug: "db2-round"
draft: false
lastmod: "2009-09-04T15:10:29Z"
id: 462132
url: "https://pipe-line.iteye.com/blog/462132"
---

select case  
         when BUDGET\_AMOUNT = 0 then  
          '0.000000'  
         else  
          trim(to\_char(BUDGET\_AMOUNT / 10000, '999999999.999999'))  
       end  
  from MB\_BUDGETDETAIL