source:
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Extensions/LongExtensions.cs
@
17189
Last change on this file since 17189 was 15771, checked in by bburlacu, 7 years ago | |
---|---|
File size: 231 bytes |
Line | |
---|---|
1 | using System; |
2 | |
3 | namespace HeuristicLab.Problems.ProgramSynthesis { |
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.