Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- using DynamicPluginData;
- namespace DatacolDynamicPluginNS
- {
- public class DynamicPluginClass
- {
- public static string processDataFieldValue(string s, ItemInfo itemInfo, GlobalInfo globalInfo)
- {
- double value = Convert.ToDouble(s);
- double onePercent = value / 10000;
- var mycount = value;
- if (mycount < 300)
- {
- value = Math.Round(value - onePercent * 700);
- }
- else if (mycount < 1000)
- {
- value = Math.Round(value - onePercent * 300);
- }
- else (value > 1000)
- {
- value = Math.Round(value - onePercent * 150);
- }
- return mycount.ToString();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement