Free cookie consent management tool by TermsFeed Policy Generator

source: addons/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Extensions/LongExtensions.cs @ 17104

Last change on this file since 17104 was 15017, checked in by pkimmesw, 8 years ago

#2665 Fixed Benchmark Problem Definition, Converted LoopExpressions to stateless expressions, Added several unit test to ensure funcionality, Fixed UI bugs

File size: 248 bytes
Line 
1using System;
2
3namespace HeuristicLab.Problems.ProgramSynthesis.Push.Extensions {
4  public static class LongExtensions {
5    public static int AsInt(this long value, int length) {
6      return (int)Math.Abs(value % length);
7    }
8  }
9}
Note: See TracBrowser for help on using the repository browser.